Search Issue Tracker
Fixed in 2022.2.0a3
Fixed in 2022.2.X, 2022.3.X, 2022.3.3f1, 2023.1.X, 2023.2.X
Votes
0
Found in
2022.3.0f1
Issue ID
UUM-18062
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note (fix version 2023.1):
Fix "NullReferenceException" thrown when renaming Sprite in the Sprite Character Table
Resolution Note (fix version 2022.2):
Fix "NullReferenceException" thrown when renaming Sprite in the Sprite Character Table