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() {