Search Issue Tracker
Fixed
Fixed in 2020.3.39f1
Votes
0
Found in
2020.3.37f1
Issue ID
UUM-9729
Regression
No
”NullReferenceException” error appears when creating a new GameObject through a script using "Reset" function if the Timeline window is docked
How to reproduce:
1. Open project “TestFeature.zip“
2. Dock Timeline window
3. Add the “TestReset” Script to a “val” GameObject
4. Observe the Console window
Expected result: “val” is logged
Actual result: “NullReferenceException“ is logged
Reproducible with: 1.4.8 (2020.3.37f1), 1.7.1 (2020.3.37f1, 2021.2.0b4)
Not reproducible with: 1.7.1 (2021.2.0b5, 2021.3.6f1, 2022.1.10f1, 2022.2.0b1, 2023.1.0a3)
Reproduced on: macOS 12.4 (Intel)
Notes:
- Not reproducible without a Timeline window
- Not reproducible with other windows
Full error:
NullReferenceException
UnityEngine.Object.get_name () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:194)
TestReset.Reset () (at Assets/Scenes/TestReset.cs:14)
UnityEditorInternal.InternalEditorUtility:InspectorWindowDrag(Object\[], Boolean)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at
/Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
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
- "Customize handled extensions" part in the External Tools settings tab is not aligned with other properties
- Editor Diagnostics foldouts do not open when clicked on the foldout title
- [UI Builder] Visual Elements are not placed at the mouse cursor position when Absolute Position Placement is enabled
- "Width" and "Height" text is misaligned with slider ends in Screen Match Mode Parameters section of Panel Settings Asset
- Editor does not quit when Editor is not in focus and any floating window is opened
Resolution Note (fix version 2020.3.39f1):
Fixed in: 2020.3.39f1