Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Chris_E on January 11, 2014, 04:30:56 PM

Title: Select A Font Show All button not working.
Post by: Chris_E on January 11, 2014, 04:30:56 PM
I get the following error whenever I push "show all" on the "select a font" window.  I doubt they're related, but the "show all" for atlases works perfectly.

NullReferenceException: Object reference not set to an instance of an object
ComponentSelector.OnGUI () (at Assets/NGUI/Scripts/Editor/ComponentSelector.cs:137)
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.OnGUI () (at C:/BuildAgent/work/d3d49558e4d408f4/Editor/Mono/GUI/DockArea.cs:120)
Title: Re: Select A Font Show All button not working.
Post by: ArenMook on January 11, 2014, 05:34:21 PM
Curious. Somehow "mObjects" is null for you. You can get around it by adding an early exit to ComponentSelector's OnGUI function:
  1. if (mObjects == null) return;