diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTestRunnerResultsForm.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTestRunnerResultsForm.java index 0b6cb89d131f..c715ef53bcdb 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTestRunnerResultsForm.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/SMTestRunnerResultsForm.java @@ -797,7 +797,7 @@ public class SMTestRunnerResultsForm extends TestResultsPanel // read action to prevent project (and storage) from being disposed ApplicationManager.getApplication().runReadAction(() -> { Project project = getProject(); - if (project.isDisposed()) return; + if (project.isDisposed() || myRoot == null) return; TestStateStorage storage = TestStateStorage.getInstance(project); List tests = myRoot.getAllTests(); for (SMTestProxy proxy : tests) {