Search Issue Tracker
Fixed
Fixed in 2021.3.29f1, 2022.3.6f1, 2023.1.5f1, 2023.2.0a22
Votes
1
Found in
2021.3.25f1
2022.2.20f1
2023.1.0b17
2023.2.0a15
Issue ID
UUM-36627
Regression
Yes
"NullReferenceException" Exception when RemoveFromHierarchy method is called
Reproduction steps:
1. Open the attached project “ExceptionAtRemove”
2. Open the “Assets/Scenes/SampleScene” Scene
3. Enter the Play mode
4. Inspect the Console window
Expected result: The Console window does not throw any messages
Actual result: The Console throws a “NullReferenceException” exception
Reproducible with: 2021.3.25f1, 2022.2.20f1, 2023.1.0b4, 2023.1.0b17, 2023.2.0a15
Not reproducible with: 2023.1.0a1, 2023.1.0b3
Couldn’t test with: 2020.3.48f1 - Errors in user script: “Assets/TestScript.cs(8,40): error CS0246: The type or namespace name 'UIDocument' could not be found (are you missing a using directive or an assembly reference?)”
Reproducible on: macOS 13.3 (Intel)
Comments (1)
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
- "Create Empty Child" Option Creates Root Object When No Parent Is Selected
- Freeze/Crash when entering Play Mode in a specific project
- Lack of documentation regarding VFX Ray Tracing support
- Shader properties do not appear on the GameObject when switching ShaderGraphs during runtime in the Player
- Multiple '-' symbols are allowed to appear in a row when inputting '.' into a non-decimal numeric field
StefanWo
Jun 30, 2023 22:22
I'm happy, that a fix is done. But its now a long time in review and no fix for 2022 i use :(
Hope to get progress on that.