NodeCanvas Forums › Support › NullReferenceException in GraphOwnerInspector.OnDestroy › Reply To: NullReferenceException in GraphOwnerInspector.OnDestroy
Maybe I misunderstood your reply, but I think the reported issue is that this
if (owner == null && owner.graph != null){
will always throw depending on the order Unity destroys the object. It will try to evaluate owner.graph when owner is null. The fix is to use
owner.graph
owner
if (owner != null && owner.graph != null){
so owner.graph is touched when owner is not null.
Username
Password
Remember Me
By registering on this website you agree to our Privacy Policy.
Email
Confirm Password
Username or Email