Cannot Reproduce

InvalidOperationException on unrelated flow graph

cosmonaut 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 2

When one of my object variables is set to null, a flow graph that is not currently being executed throws this error. The error gets thrown even if I wrap the flow in a null check. Could this have to do with the UI?

InvalidOperationException: Missing target object for 'UnityEngine.GameObject.transform'.
Ludiq.Member.EnsureReady () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Member.cs:686)
Ludiq.Member.Get () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Member.cs:696)
Bolt.GetMember.Value (Ludiq.Recursion recursion) (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow/Framework/Codebase/GetMember.cs:64)
Bolt.ValueOutput.GetValue (Ludiq.Recursion recursion) (at C:/Users/Lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow/Ports/ValueOutput.cs:92)
Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):
Pending Review

Hi cosmonaut,

That's weird, are you certain your graph is not getting executed?

Is this the full stack trace of the error? 

From your screenshot, it seems as though these nodes get activated at runtime (blue color).