Search Issue Tracker
Fixed
Fixed in 2022.2.0a3, 2022.3.3f1, 2023.1.1f1, 2023.2.0a5
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
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note (fix version 2023.1.1f1):
Fix "NullReferenceException" thrown when renaming Sprite in the Sprite Character Table
Resolution Note (fix version 2022.2.0a3):
Fix "NullReferenceException" thrown when renaming Sprite in the Sprite Character Table