Reply To: NullReferenceException in GraphOwnerInspector.OnDestroy

Forums 💬 NodeCanvas ⚙️ Support NullReferenceException in GraphOwnerInspector.OnDestroy Reply To: NullReferenceException in GraphOwnerInspector.OnDestroy

#17028
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 🙂