From f3914db145b11f3f3680be240cb1b16ff1816e5b Mon Sep 17 00:00:00 2001 From: Egor Ushakov Date: Fri, 8 Nov 2024 18:12:23 +0100 Subject: [PATCH] fixing blinking tests (cherry picked from commit a597016241d7d732050762d01f1df9818fe6f35e) IJ-CR-148573 GitOrigin-RevId: 66e0fb5538166775477f77d78fbbdc95635939ff --- .../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 55adb44cdd2a..b49be436ad4a 100644 --- a/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java +++ b/platform/xdebugger-impl/src/com/intellij/xdebugger/impl/XDebugSessionImpl.java @@ -1032,7 +1032,9 @@ public final class XDebugSessionImpl implements XDebugSession { if (mySessionTab != null) { AppUIUtil.invokeOnEdt(() -> { mySessionTab.getUi().attractBy(XDebuggerUIConstants.LAYOUT_VIEW_FINISH_CONDITION); - ((XWatchesViewImpl)mySessionTab.getWatchesView()).updateSessionData(); + if (!myProject.isDisposed()) { + ((XWatchesViewImpl)mySessionTab.getWatchesView()).updateSessionData(); + } mySessionTab.detachFromSession(); }); }