Reply To: NullReferenceException in GraphOwnerInspector.OnDestroy

NodeCanvas Forums Support NullReferenceException in GraphOwnerInspector.OnDestroy Reply To: NullReferenceException in GraphOwnerInspector.OnDestroy

#13839
Gavalakis
Keymaster

What I do there is very hacky, but considering that the hack is kept, then @psykaw‘s code is the “correct” fix. Truth is that the whole OnDestroy method there is not really mandatory, since the object will be cleaned up anyway, but is rather a mini-convenience cleanup, which is not critical at all.


@sugoidev
, if ‘ReferenceEquals(owner, null) == false’, then the ‘owner.graph’ will of course not be accessed 🙂

Join us on Discord: https://discord.gg/97q2Rjh