How to reproduce:
- Create and open a new project
- Ensure the new Hierarchy is enabled (Edit → Preferences→ General → Use new Hierarchy window)
- Delete all but one GameObject from the scene (for instance, leave only the “Main Camera” in the scene)
- Select the remaining GameObject in the Hierarchy
- Wait a second or so (to prevent double-click behavior)
- Click the remaining GameObject in the Hierarchy again (while it is still selected) to trigger the rename timer
- Quickly press the “Delete” key before the rename field appears
- 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