Reply To: Null reference in Graph.cs

NodeCanvas Forums Support Null reference in Graph.cs Reply To: Null reference in Graph.cs

#9686
pltremblay
Participant

I got the same error. But with a different repro step.
I’m using Dialogue Canvas.
I added a global variable in the blackboard which is a custom class. The variable is null and is set just before starting the dialogue (with blackboard.SetValue)

Like Leon, the exception appears when loading and clicking the NC2 editor.

My guess is that this returns null.
typeof(Task).GetField("taskAgent", BindingFlags.Instance | BindingFlags.NonPublic)

But when I tried storing it in a var, it is always null.

Hope this help find the problem.