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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Event handlers are preventing operations when trying to copy or paste HTML text in the WebGL Player
- [macOS] Crash on __pthread_kill when Exporting a Package while another export is in progress
- Crash on TransformAccessDestroyCallback when removing a URP Decal Projector component from a parent GameObject that had a URP Decal Projector child GameObject
- [ShaderGraph] Shader error in 'Shader Graphs/Screen_Graph': 'SHADERGRAPH_BAKED_GI' in URP Sample
- An added component is being removed form the prefab when reimporting the prefab
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-18062