From a25ce83b96b7a52e5840000ff62f833656a20611 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Tue, 29 Jul 2014 12:36:06 +0200 Subject: [PATCH] check myProject.isDisposed --- .../src/com/intellij/xdebugger/impl/XDebugSessionImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java index 9ab13ba0ae74..3582822645d4 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java @@ -847,7 +847,9 @@ public class XDebugSessionImpl implements XDebugSession { if (myStopped) return; myDebugProcess.stop(); - myProject.getMessageBus().syncPublisher(XDebuggerManager.TOPIC).processStopped(myDebugProcess); + if (!myProject.isDisposed()) { + myProject.getMessageBus().syncPublisher(XDebuggerManager.TOPIC).processStopped(myDebugProcess); + } myCurrentPosition = null; myCurrentExecutionStack = null; myCurrentStackFrame = null;