playMaker

Author Topic: NullReferenceException - How to track down the problem?  (Read 3047 times)

jess84

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
NullReferenceException - How to track down the problem?
« on: April 25, 2014, 08: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?

jess84

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: NullReferenceException - How to track down the problem?
« Reply #1 on: May 02, 2014, 05:26:55 AM »
bump

PaulH

  • Playmaker Newbie
  • *
  • Posts: 48
    • View Profile
Re: NullReferenceException - How to track down the problem?
« Reply #2 on: May 03, 2014, 02:05:53 AM »
Bumpity Bump!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3637
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: NullReferenceException - How to track down the problem?
« Reply #3 on: May 03, 2014, 02: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...

jess84

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: NullReferenceException - How to track down the problem?
« Reply #4 on: May 03, 2014, 08: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?

jess84

  • Hero Member
  • *****
  • Posts: 513
    • View Profile
Re: NullReferenceException - How to track down the problem?
« Reply #5 on: May 03, 2014, 08:09:03 AM »
I've just submitted a bug report anyway.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3637
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: NullReferenceException - How to track down the problem?
« Reply #6 on: May 04, 2014, 01:27:05 AM »
Thanks! I've replied to your bug report. We'll figure out what's going on...