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)
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
- [VFX Graph] Base Color Map Inconsistency between Lit and Unlit Ouput
- [HDRP] Water is using the wrong depth when calculating absorption for alpha clipped transparents with depth prepass enabled
- [VFX Graph] Emissive isn't working with Decal output
- Gizmos are not drawn in Game view and Render Graph Execution errors are shown when stacked Overlay Camera is used and 'Compatibility Mode' is disabled
- Crash on WalkTypeTreeInternal when selecting the Texture of a specific FBX
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.