diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/InfoAndProgressPanel.java b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/InfoAndProgressPanel.java index 1d45d791bd0a..687735257e41 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/InfoAndProgressPanel.java +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/status/InfoAndProgressPanel.java @@ -357,6 +357,10 @@ public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge private void buildInInlineIndicator(@NotNull final InlineProgressIndicator inline) { removeAll(); setLayout(new InlineLayout()); + + final JRootPane pane = myInfoPanel.getRootPane(); + if (pane == null) return; // project frame is closed + add(myRefreshAndInfoPanel); final JPanel inlinePanel = new JPanel(new BorderLayout()); @@ -377,8 +381,6 @@ public class InfoAndProgressPanel extends JPanel implements CustomStatusBarWidge myRefreshAndInfoPanel.revalidate(); myRefreshAndInfoPanel.repaint(); - final JRootPane pane = myInfoPanel.getRootPane(); - assert pane != null; final PresentationModeProgressPanel panel = new PresentationModeProgressPanel(inline); MyInlineProgressIndicator delegate = new MyInlineProgressIndicator(true, inline.getInfo(), inline) { @Override