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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-93124