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
- Baked Lightmap ”View” button text is aligned incorrectly
- Lightmap Asset icon changes colours after Baked Lightmap Viewer window is opened
- VideoClipImporter preset not applied when applying Preset Selector on already imported video clips
- Frame Debugger gets disabled when any Editor window is maximised and minimised
- TextMeshPro InputField view is not updated when OnEndEdit is triggered
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-93124