From eaef6ec632875c1439ec426c355b43db1fd7eb5d Mon Sep 17 00:00:00 2001 From: Maxim Shafirov Date: Tue, 6 Dec 2011 20:02:22 +0400 Subject: [PATCH] NPE --- .../intellij/openapi/wm/impl/status/IdeStatusBarImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/IdeStatusBarImpl.java b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/IdeStatusBarImpl.java index c5ae1e9efeb6..e7735ffaf980 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/IdeStatusBarImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/IdeStatusBarImpl.java @@ -259,9 +259,9 @@ public class IdeStatusBarImpl extends JComponent implements StatusBarEx { myWidgetMap.clear(); myChildren.clear(); - myLeftPanel.removeAll(); - myRightPanel.removeAll(); - myCenterPanel.removeAll(); + if (myLeftPanel != null) myLeftPanel.removeAll(); + if (myRightPanel != null) myRightPanel.removeAll(); + if (myCenterPanel != null) myCenterPanel.removeAll(); } private void addWidget(@NotNull final StatusBarWidget widget, @NotNull final Position pos, @NotNull final String anchor) {