What’s the proper way to pass nullable data to man...
# community-support
m
What’s the proper way to pass nullable data to managed objects? I tried • pass directly, e.g.
objectFactory.newInstance(klass, nullableData)
. Gradle throws, can’t pass nullable parameters • add two
@Inject
constructors, one empty and one with non-null parameter. Gradle throws in this case - only one inject constructor is allowed. I’m trying to model a tree like structure where object
Node
can have a
parent: Node?
and add parent properties as a convention to its own. Maybe extensions can help?