Author Topic: NullReferenceException  (Read 2827 times)

trzmiel

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
NullReferenceException
« on: January 09, 2015, 07:54:51 AM »
The new error appears since I upgraded the Unity to current version (4.6.1). The error occurs only in editor and is connected with anchoring. Anchoring in editor doesn't work - GUI is messed up. But in play mode everything is ok. Any help would be appreciated.

NullReferenceException: Object reference not set to an instance of an object
UIPanel.get_worldCorners () (at Assets/NGUI/Scripts/UI/UIPanel.cs:598)
UIPanelInspector.OnSceneGUI () (at Assets/NGUI/Scripts/Editor/UIPanelInspector.cs:85)
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.SceneView.CallOnSceneGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneView/SceneView.cs:1660)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneView/SceneView.cs:1079)
UnityEditor.SceneView.OnGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/SceneView/SceneView.cs:989)
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)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NullReferenceException
« Reply #1 on: January 10, 2015, 12:09:03 PM »
You need to update your NGUI...

reegankens

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: NullReferenceException
« Reply #2 on: February 10, 2015, 03:15:29 AM »
Thanks.

VitorR

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
  • Games and apps developer for Android and iOS
    • View Profile
    • Yeeply
Re: NullReferenceException
« Reply #3 on: February 11, 2015, 03:48:12 AM »
I was having this problem as well, I'll try this. Thanks!