Search Issue Tracker
Fixed in 2017.3.X
Votes
0
Found in
2017.2.0a4
Issue ID
920771
Regression
No
NullReferenceException if user Packs Preview after multi-selecting sprites to pack in a view-locked atlas
NullReferenceException if user Packs Preview after multi-selecting assets to pack in a view-locked atlas
1. Import 2 sprites
2. In Assets, right click > Create > Sprite Atlas
3. Lock atlas view in Inspector
4. Multi-select both sprites and drag them into the "Objects for Packing" area
5. Press "Pack Preview"
Expected: No error
Observed: NullReferenceException
Occurring on: 2017.1.0a5 (first appearance of Sprite Atlas) until 2017.2.0a4 (current latest trunk)
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.InspectorWindow.GetEditorsWithPreviews (UnityEditor.Editor[] editors) (at /Users/weswong/Work/trunk/unity/Editor/Mono/Inspector/InspectorWindow.cs:515)
UnityEditor.InspectorWindow.DrawPreviewAndLabels () (at /Users/weswong/Work/trunk/unity/Editor/Mono/Inspector/InspectorWindow.cs:612)
UnityEditor.InspectorWindow.OnGUI () (at /Users/weswong/Work/trunk/unity/Editor/Mono/Inspector/InspectorWindow.cs:398)
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 /Users/weswong/Work/trunk/unity/Editor/Mono/HostView.cs:283)
UnityEditor.HostView.Invoke (System.String methodName) (at /Users/weswong/Work/trunk/unity/Editor/Mono/HostView.cs:276)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at /Users/weswong/Work/trunk/unity/Editor/Mono/HostView.cs:243)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment