From d700f777472e1fa77cb3570d22929c5e29b849ff Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Tue, 21 Jul 2015 13:05:27 +0200 Subject: [PATCH] EA-70909 - IAE: ServiceManager.getService --- .../sm/runner/history/actions/ImportTestsGroup.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsGroup.java b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsGroup.java index 59edf6ce7ce9..2df71ab01544 100644 --- a/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsGroup.java +++ b/platform/smRunner/src/com/intellij/execution/testframework/sm/runner/history/actions/ImportTestsGroup.java @@ -49,6 +49,7 @@ public class public AnAction[] getChildren(@Nullable AnActionEvent e) { if (e == null) return EMPTY_ARRAY; final Project project = e.getProject(); + if (project == null) return EMPTY_ARRAY; final Collection filePaths = TestHistoryConfiguration.getInstance(project).getFiles(); final File testHistoryRoot = AbstractImportTestsAction.getTestHistoryRoot(project); final List fileNames = ContainerUtil.map(filePaths, new Function() {