Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jess84 on April 25, 2014, 11:21:54 AM

Title: NullReferenceException - How to track down the problem?
Post by: jess84 on April 25, 2014, 11:21:54 AM
Hi,

So I have this popping up every time I play my level - however there's a lot of things going on, so I have no idea where to track it down:

NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMakerEditor.FsmEditor.Update ()
FsmEditorWindow.Update () (at Assets/PlayMaker/Editor/FsmEditorWindow.cs:319)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/DockArea.cs:231)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/DockArea.cs:224)
UnityEditor.HostView.SendUpdate () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/DockArea.cs:281)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/EditorApplication.cs:214)


I don't see any references to any of my names objects/actions in there - so I have no clue.  It could also be related to an editor add-on that I tried out but later deleted.

Any ideas how to find the offending object?
Title: Re: NullReferenceException - How to track down the problem?
Post by: jess84 on May 02, 2014, 08:26:55 AM
bump
Title: Re: NullReferenceException - How to track down the problem?
Post by: PaulH on May 03, 2014, 05:05:53 AM
Bumpity Bump!
Title: Re: NullReferenceException - How to track down the problem?
Post by: Alex Chouls on May 03, 2014, 05:53:18 AM
Do you get the error with the Playmaker editor closed?
Please submit a bug so we can get more system info etc. If you've already submitted a bug please add the bug number here so I can take a look...
Title: Re: NullReferenceException - How to track down the problem?
Post by: jess84 on May 03, 2014, 11:04:14 AM
Just tested with the PlayMaker Editor closed... and I don't get any errors.

So is this a bug, rather than an error caused by something I've not done correctly?
Title: Re: NullReferenceException - How to track down the problem?
Post by: jess84 on May 03, 2014, 11:09:03 AM
I've just submitted a bug report anyway.
Title: Re: NullReferenceException - How to track down the problem?
Post by: Alex Chouls on May 04, 2014, 04:27:05 AM
Thanks! I've replied to your bug report. We'll figure out what's going on...