playMaker

Author Topic: Null Reference Exception: Object reference not set to an instance of an object  (Read 4001 times)

Bhoopalan

  • Playmaker Newbie
  • *
  • Posts: 4
Hi,

I'm getting this following error message only when Playmaker editor is open:

NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUISkin.GetStyle (System.String styleName) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/GUISkinBindings.cs:269)
UnityEngine.GUIStyle.op_Implicit (System.String str) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/GUIStyleBindings.cs:848)
UnityEditor.GameObjectTreeViewGUI+GameObjectStyles..ctor ()
UnityEditor.GameObjectTreeViewGUI.InitStyles () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/TreeView/GameObjectTreeViewGUI.cs:49)
UnityEditor.TreeViewGUI.GetTotalSize (System.Collections.Generic.List`1 rows) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/TreeView/TreeViewGUI.cs:86)
UnityEditor.TreeView.GetContentSize () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/TreeView/TreeView.cs:339)
UnityEditor.TreeView.Frame (Int32 id, Boolean frame, Boolean ping) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/TreeView/TreeView.cs:778)
UnityEditor.SceneHierarchyWindow.FrameObjectPrivate (Int32 instanceID, Boolean frame, Boolean ping) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneHierarchyWindow.cs:732)
UnityEditor.SceneHierarchyWindow.FrameObject (Int32 instanceID, Boolean ping) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneHierarchyWindow.cs:715)
UnityEditor.EditorGUIUtility.PingObject (Int32 targetInstanceID) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/EditorGUIUtility.cs:426)
UnityEditor.EditorGUIUtility.PingObject (UnityEngine.Object obj) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/EditorGUIUtility.cs:418)
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/mono-runtime-and-classlibs/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/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/DockArea.cs:244)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/DockArea.cs:237)
UnityEditor.HostView.SendUpdate () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/DockArea.cs:294)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/EditorApplication.cs:235)

I've read others say similarly and you've fixed it when they filed a bug. If that's the case, can you help me with that as well? The other thread is quite old at http://hutonggames.com/playmakerforum/index.php?topic=7109.0

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
When are you getting this error? It looks like Unity is failing to ping an object in the Hierarchy View, but not sure why...

Can you submit a bug report so we can get more info on your setup? Main Menu > PlayMaker > Tools > Submit Bug Report.