You’re both almost right. owner == null could return true but owner could be not null (will be destroyed at the end of the frame). == operator is overriden by Unity.
To prevent null ref exception you should replace condition with this code: owner == null && !ReferenceEquals(owner, null) && owner.graph != null
Login
Register
By registering on this website you agree to our Privacy Policy.