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
- Crash on when D3D12RenderPass::SetupDeviceResources when opening FBX animation preview
- Serialization errors are thrown when "com.unity.render-pipelines.core" is added as a custom package and Graphics window is opened
- Character Joints unexpectedly rotate when a ragdoll is created using the Ragdoll Wizard
- Crash on GfxDeviceD3D11Base::DrawBuffersBatchMode when rendering the Scene view
- The shared EditorBuildSettings.asset file of symlinked projects is not updated when changing the order of the Scenes in Build Settings in one of the projects
Add comment