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
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- Unity is loading internal version of SharpZipLib instead of local version
- The Context Menu items are ordered incorrectly
- Audio Mixer does not change volume when lowering volume on an Audio Mixer loaded from AssetBundles
This is a duplicate of issue #899307