From 5e83541fa21d7761b5addf3ed3393b43c2f7ff7f Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 3 Dec 2009 18:09:39 +0300 Subject: [PATCH] revert part of the change that causes an exception --- java/idea-ui/src/com/intellij/ide/palette/impl/PaletteManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/idea-ui/src/com/intellij/ide/palette/impl/PaletteManager.java b/java/idea-ui/src/com/intellij/ide/palette/impl/PaletteManager.java index 0ff19abc62..6656c6d9c4 100644 --- a/java/idea-ui/src/com/intellij/ide/palette/impl/PaletteManager.java +++ b/java/idea-ui/src/com/intellij/ide/palette/impl/PaletteManager.java @@ -77,6 +77,10 @@ public class PaletteManager implements ProjectComponent { } public void projectClosed() { + if (myPaletteWindow != null) { + ToolWindowManager.getInstance(myProject).unregisterToolWindow(IdeBundle.message("toolwindow.palette")); + myPaletteWindow = null; + } } @NotNull -- 2.11.4.GIT