NPE: Jupyter notebook closed during cell evaluation

This commit is contained in:
Ekaterina Tuzova
2017-12-28 17:43:05 +03:00
parent efe246192c
commit 84f10f71f7
@@ -345,7 +345,7 @@ public class IpnbCodePanel extends IpnbEditablePanel<JComponent, IpnbCodeCell> {
myPromptLabel.setText(prompt);
application.runWriteAction(() -> myCodeSourcePanel.getEditor().getDocument().setText(replacementContent));
}
if (outputContent != null) {
if (outputContent != null && myHideableOutputPanel != null) {
myCell.addCellOutput(outputContent);
final JComponent component = myHideableOutputPanel.getSecondComponent();
if (component != null) {