Reply To: Probable mistake in GraphOwnerInspector.OnDestroy()

Forums 💬 NodeCanvas ⚙️ Support Probable mistake in GraphOwnerInspector.OnDestroy() Reply To: Probable mistake in GraphOwnerInspector.OnDestroy()

#16897
erwan
Participant

    Not wanting to appear anoying but conditionals are resolved left to right so in this case :
    owner == null && owner.graph != null
    If the following is true :
    owner == null
    then owner will be null and when the next conditional will be resolved (because it is a &&) it will crash because you are using owner : owner.graph != null