From cb6a738d366777f464dfe1a311f7b707e1397d9a Mon Sep 17 00:00:00 2001 From: "Gregory.Shrago" Date: Tue, 17 May 2016 21:46:56 +0300 Subject: [PATCH] EA-82510 - assert: InfoAndProgressPanel.c --- .../openapi/wm/impl/status/InfoAndProgressPanel.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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