EA-87951 - NPE: SMTestRunnerResultsForm$MySaveHistoryTask.lambda$writeState$

This commit is contained in:
Dmitry Avdeev
2017-03-14 13:24:55 +03:00
parent 4037134189
commit 0c38d33f92
@@ -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<SMTestProxy> tests = myRoot.getAllTests();
for (SMTestProxy proxy : tests) {