EA-35827 - NPE: ConsoleViewImpl.clear

concurrent disposing
This commit is contained in:
anna
2012-04-30 13:15:08 +02:00
parent 0942f31fa1
commit f946469061
@@ -326,8 +326,12 @@ public class ConsoleViewImpl extends JPanel implements ConsoleView, ObservableCo
// real document content will be cleared on next flush;
myContentSize = 0;
myBuffer.clear();
myHyperlinks.clearHyperlinks();
myFolding.clear();
final EditorHyperlinkSupport hyperlinks = myHyperlinks;
if (hyperlinks != null) {
hyperlinks.clearHyperlinks();
}
}
if (myFlushAlarm.isDisposed()) return;
cancelAllFlushRequests();