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
- Errors are thrown when clicking "Refresh Virtual Offset Debug"
- 2D Renderer Breaks When Animating Material Property with MaterialPropertyBlock
- PlayModeStateChange.ExitingPlayMode is not logged when Play Mode is exited due to recompilation
- Crash on `anonymous namespace'::PrepareTreesAndWriteWindParamsJobData::Execute when entering Play Mode on a specific project
- Errors "InvalidOperationException: Trying to use a texture (_InternalGradingLut)..." and “Render Graph Execution error” shown and Scene turns black when 16 or more Render Objects are used
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.