Search Issue Tracker
Duplicate
Votes
0
Found in
2018.1.0a5
Issue ID
971187
Regression
Yes
[2D] "NullReferenceException" error when creating the Sprite Shape Profile
"NullReferenceException: Object reference not set to an instance of an object" error appears in the console when creating new “Sprite Shape Profile”
Preconditions:
Project Files : Download the attached zip folder containing the SpriteShape feature. The latest is available on gitlab. Link: https://gitlab.internal.unity3d.com/2d/2d-spriteshape
Steps to Reproduce:
1. Create a new Project in Unity3D
2. Drag and Drop the "2d-spriteshape-master" folder into the Assets folder of the project
3. Click on Assets Menu > Create > Sprite Shape Profile > Profile.
Console will show the error.
Stack trace on Console is :
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.U2D.EditorGUIReflection.GetCurrentInspectorWindow () (at Assets/2d-spriteshape-master/Editor/EditorGUIReflection.cs:62)
UnityEditor.U2D.SpriteShapeEditor.OnInspectorGUI () (at Assets/2d-spriteshape-master/Editor/SpriteShapeEditor.cs:167)
UnityEditor.InspectorWindow.DrawEditor (UnityEditor.Editor[] editors, Int32 editorIndex, Boolean rebuildOptimizedGUIBlock, System.Boolean& showImportedObjectBarNext, UnityEngine.Rect& importedObjectBarRect) (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1299)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Notes:
- Appears on both Mac and Windows
- Appears always
Frequency: 5/5
Reproduced on: 2018.1.0a5
Regression introduced on: 2018.1.0a5
Works fine on: 2018.1.0a4, 2017.3.0b9
License type: Pro
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
- Render Graph Viewer Resource list becomes shrunk after using a filter that yields no results
- [Android] [Vulkan] "VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT" not added on some Android devices in "com.unity3d.player.UnityPlayerActivity/2D Colour Attachement"
- ResolveUsePasses now extracts passes from all subshaders including fallbacks, in contrast to documented behaviour
- [UIBuilder] Changes aren't detected on types implementing IList
- [HDRP] Text is rendered with artefacts when using STP and resolution scale is set a float value
This is a duplicate of issue #971165