Search Issue Tracker

Fixed

Votes

0

Found in

2023.1.0a17

Issue ID

UUM-19037

Regression

Yes

Error "NullReferenceException" is thrown when renaming Sprite in the Sprite Character Table

--

-

How to reproduce:
1. Open the project “IN_17556.zip”
2. Press “Font Sprite-RENAME HERE” Sprite Asset → Sprite Character Table
3. Press on the Name → rename the asset and press enter
4. Observe the Console

Expected result: no error in the Console
Actual result: error in the Console

Reproducible with: 2022.1.0a11, 2022.1.20f1, 2022.2.0b12, 2023.1.0a15
Not reproducible with: 2020.3.40f1, 2021.3.11f1, 2022.1.0a10

Reproducible on: Windows 10 Pro

Full error:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.TextCore.Text.SpriteCharacterPropertyDrawer.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <eb3a825eb5634e1a87dbe6aec9ec7ce1>:0)
UnityEditor.PropertyDrawer.OnGUISafe (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label) (at <c3a254a0b67c4cbabc1034a3874509dc>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.Rect visibleArea) (at <c3a254a0b67c4cbabc1034a3874509dc>:0)
UnityEditor.PropertyHandler.OnGUI (UnityEngine.Rect position, UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren) (at <c3a254a0b67c4cbabc1034a3874509dc>:0)
UnityEditor.PropertyHandler.OnGUILayout (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption\[] options) (at <c3a254a0b67c4cbabc1034a3874509dc>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, System.Boolean includeChildren, UnityEngine.GUILayoutOption\[] options) (at <c3a254a0b67c4cbabc1034a3874509dc>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUILayoutOption\[] options) (at <c3a254a0b67c4cbabc1034a3874509dc>:0)
UnityEditor.TextCore.Text.TextSpriteAssetEditor.OnInspectorGUI () (at <eb3a825eb5634e1a87dbe6aec9ec7ce1>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass62_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <8e1306750ec2448cbbffed10b1f389f2>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

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.