Search Issue Tracker

Fixed

Votes

1

Found in

5.1.0f2

Issue ID

701370

Regression

No

[UnityEditor] Undo.DestroyObjectImmediate() crashes editor if passed null

Editor - Other

-

Steps to reproduce:

1. Open attached project
2. Open "Editor/HardCrash" script
3. Notice Undo.DestroyObjectImmediate(null)
4. In Unity, select "GameObject/HardCrash" from the editor menu
5. Observe a crash

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.