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) {