Search Issue Tracker
Fixed
Votes
0
Found in
6000.0.47f1
Issue ID
UUM-103219
Regression
Yes
"NullReferenceException" thrown and scene corrupted when build is canceled with changes in the scene
How to reproduce:
1. Create and open a new project
2. In the Hierarchy select the “MainCamera” GameObject
3. In the Inspector change the “Position” X value to 10, in the Transform component
4. In the title bar navigate to File > Build And Run, alternatively use the Ctrl + B shortcut
5. In the "Scene(s) Have Been Modified" dialog box, press Cancel
6. Observe the Editor and the Console
Expected result: No changes in the scene, couple of warnings in the Console
Actual result: Scene is corrupted, couple of warnings and errors are thrown in the Console
Reproducible with: 6000.0.35f1 (ed4dc7af2c82), 6000.0.47f1
Not reproducible with: 2022.3.61f1, 6000.0.34f1, 6000.1.0b15, 6000.2.0a9
Reproducible on: Windows 11, macOS 15.3 (M2 Ultra)
Not reproducible on: No other environments tested
Notes:
- Any changes made to the scene reproduce the issue
- “NullReferenceException: Object reference not set to an instance of an object” are thrown in the Console
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
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- GC.Alloc called by HDRenderPipeline.LensFlareMergeOcclusionDataDrivenPass() when playing the default HDRP Sample Template project
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-93124