I have a referent set handler, which has three parameters:
- referentNode: the node that contains the reference
- oldReferentNode: the old reference value
- newReferentNode: the new reference value
This handler is called when I change the reference in the editor. SO far, so good.
Now I need to find an ancestor of the referentNode. To my surprise I cannot find the ancestor because the referentNode does not have a parent, it isn't even in a model.
As the referentNode exists in my editor, I know that it definitely has a parent and is inside a model. Is this a bug? Or are there special circumstances where the referentNode can be null?