Search Issue Tracker

Fixed

Fixed in 6000.6.0a4

Votes

0

Found in

6000.4.2f1

6000.5.0b3

6000.6.0a3

Issue ID

UUM-139727

Regression

Yes

NullReferenceExceptions appear when clicking to rename and then deleting the only GameObject in a scene

Hierarchy V2

-

How to reproduce:

  1. Create and open a new project
  2. Ensure the new Hierarchy is enabled (Edit → Preferences→ General → Use new Hierarchy window)
  3. Delete all but one GameObject from the scene (for instance, leave only the “Main Camera” in the scene)
  4. Select the remaining GameObject in the Hierarchy
  5. Wait a second or so (to prevent double-click behavior)
  6. Click the remaining GameObject in the Hierarchy again (while it is still selected) to trigger the rename timer
  7. Quickly press the “Delete” key before the rename field appears
  8. Observe the Console

Actual result: Numerous NullReferenceExceptions appear in the Console
Expected result: No errors appear in the Console

Reproducible with: 6000.4.0a5, 6000.4.3f1, 6000.5.0b4, 6000.6.0a3
Not reproducible in: 6000.3.13f1, 6000.4.0a4
Could not test with: 2023.1.0a4, 6000.0.73f1 (the new Hierarchy was introduced in 6000.3)

Reproducible on: Windows 11
Not reproducible on: No other environments tested

Note: The NullReferenceExceptions stop appearing once a GameObject has been added to the scene

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.