EA-82510 - assert: InfoAndProgressPanel.c

This commit is contained in:
Gregory.Shrago
2016-05-17 21:50:38 +03:00
parent f0d8620edc
commit cb6a738d36
@@ -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