Search Issue Tracker

Duplicate

Votes

0

Found in

2017.1.0b1

Issue ID

900641

Regression

Yes

NullReferenceException thrown when selecting multiple objects in Project explorer

Project Browser/Hierarchy

-

1. What happened
NullReferenceException thrown when selecting multiple objects of different types in Project explorer:

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Editor.DrawHeaderGUI (UnityEditor.Editor editor, System.String header, Single leftMargin) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:486)
UnityEditor.Editor.DrawHeaderGUI (UnityEditor.Editor editor, System.String header) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:465)
UnityEditor.InspectorWindow.DrawSelectionPickerList () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1328)
UnityEditor.InspectorWindow.OnGUI () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:366)
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)

2. How we can reproduce it using the example you attached
- Open Project Explorer
- Select few objects of different type (either Cmd + A for all objects, or e.g. Folder + Script). 2 objects are enough as longs as they're not the same type
--->
Error appears in Console and is constantly generated as long as objects are selected

This is regression from 5.6.0p1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.