Search Issue Tracker

Fixed in 5.4.0

Votes

0

Found in

5.4.0b13

Issue ID

786235

Regression

Yes

NullReferenceException when trying to close a custom window no longer present in the project

IMGUI

-

Steps to reproduce :

- import the Full Inspector package https://www.assetstore.unity3d.com/en/#!/content/14913
- go to Window > Full Inspector > Developer > Editor Images Manager
- delete the package from the Project Browser
- try to close the empty window and notice the error

*Note :
Right click on the tab doesn't work, needs to be closed with the little 3 lines menu.
This used to work before.

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorWindow.Close () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorWindow.cs:679)
UnityEditor.DockArea.Close (System.Object userData) (at /Users/builduser/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:376)
UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, Int32 selected) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/GenericMenuBindings.gen.cs:122)

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.