0
Fixed

NullReferenceException

Ted Ewen 3 years ago updated by Lazlo Bonin (Lead Developer) 2 years ago 4

Just noticed this on loading into a new project. I imported the custom comment graph before the main bolt package to try to save a step.


NullReferenceException: Object reference not set to an instance of an object

UnityEngine.GUILayout.FlexibleSpace () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayout.cs:282)
Ludiq.GeneratePropertyProvidersPage.OnContentGUI () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/GeneratePropertyProvidersWindow/GeneratePropertyProvidersPage.cs:52)
Ludiq.Page.DrawContent () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:71)
Ludiq.Wizard.OnGUI () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Wizard.cs:106)
Ludiq.WrappedEditorWindow.OnGUI () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:52)
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/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/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.OldOnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:107)
UnityEngine.Experimental.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt) (at C:/buildslave/unity/build/Runtime/UIElements/Managed/IMGUIContainer.cs:182)

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Generally, this is a bad thing.  However, if you see it has that GUILayout.FlexibleSpace bit at the top of the call stack, it's a Unity error that they're fixing in the 2018 builds.  Apparently, it's not something Bolt specific.


Okay, so apparently Lazlo found a way to fix it anyway!

Ok, cool, thanks!

Fixed in Beta

This will be fixed in v.1.3.