EA-89953 - assert: MessageBusImpl.checkNotDisposed

This commit is contained in:
Anna.Kozlova
2016-10-17 13:10:49 +02:00
parent 0cb5558e85
commit 943ee0e8b2
@@ -244,7 +244,12 @@ public abstract class GeneralTestEventsProcessor implements Disposable {
}
public void stopEventProcessing() {
UIUtil.invokeLaterIfNeeded(() -> myTransferToEDTQueue.drain());
UIUtil.invokeLaterIfNeeded(() -> {
if (myProject.isDisposed()) {
return;
}
myTransferToEDTQueue.drain();
});
}