Search Issue Tracker

Duplicate

Votes

0

Found in

2019.2.0a11

Issue ID

1143398

Regression

Yes

[2D] NullReferenceException on enabling Custom Range property from Sprite Mask

Themes

-

Editor throws NullReferenceException on enabling Custom Range property from Sprite Mask for the first time.

Steps to Reproduce:
1. Create a new project
2.Hierarchy > 2D Object > Sprite Mask > Enable Custom Range

Note:
1. Custom Range Property was not enabling through keyboard shortcut (Space) mentioned in BugID - 1136216 with Unity 2019.2.0a10 and earlier versions till 2019.1.0a5
2. Refer attached video.

Actual Result:
NullReferenceException on enabling Custom Range property

Expected Result:
Custom Range property is enabled without any errors.

Reproducible on:
2019.2.0a11

Works fine on:
2019.2.0a10, 2019.1.0b10

Environment:
Windows and MacOS

Error Details:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUIUtility.get_currentViewWidth () (at <02b648b65c8c46d49560e1c1b575cd2a>:0)
UnityEditor.EditorGUIUtility.CalcContextWidth () (at C:/buildslave/unity/build/Editor/Mono/EditorGUIUtility.cs:1064)
UnityEditor.EditorGUIUtility.get_contextWidth () (at C:/buildslave/unity/build/Editor/Mono/EditorGUIUtility.cs:1086)
UnityEditor.EditorGUIUtility.get_labelWidth () (at C:/buildslave/unity/build/Editor/Mono/EditorGUIUtility.cs:1100)
UnityEditor.EditorGUILayout.get_kLabelFloatMinW () <0x2667d454530 + 0x00052> in <02b648b65c8c46d49560e1c1b575cd2a>:0
UnityEditor.EditorGUILayout.GetControlRect (System.Boolean hasLabel, System.Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9376)
UnityEditor.EditorGUILayout.GetControlRect (System.Boolean hasLabel, System.Single height, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9370)
UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/ScriptAttributeGUI/PropertyHandler.cs:206)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9355)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Editor/Mono/EditorGUI.cs:9344)
UnityEditor.SpriteMaskEditor.OnInspectorGUI () (at C:/buildslave/unity/build/Modules/SpriteMaskEditor/Editor/Managed/SpriteMaskEditor.cs:80)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:479)
UnityEditor.UIElements.Tooltip:SetTooltip(Single, Single)

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.