mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-206102 - NPE: ShowCoveringTestsAction.update
GitOrigin-RevId: 2a3e68c98af9d9791f525f80ec29b065e8c10e04
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4fc28d7bb7
commit
cd7e6006a5
+3
-2
@@ -43,7 +43,7 @@ public class ShowCoveringTestsAction extends AnAction {
|
||||
private final LineData myLineData;
|
||||
|
||||
public ShowCoveringTestsAction(final String classFQName, LineData lineData) {
|
||||
super("Show tests covering line", "Show tests covering line", PlatformIcons.TEST_SOURCE_FOLDER);
|
||||
super("Show Tests Covering Line", "Show tests covering line", PlatformIcons.TEST_SOURCE_FOLDER);
|
||||
myClassFQName = classFQName;
|
||||
myLineData = lineData;
|
||||
}
|
||||
@@ -108,7 +108,8 @@ public class ShowCoveringTestsAction extends AnAction {
|
||||
final Project project = e.getProject();
|
||||
if (project != null) {
|
||||
CoverageSuitesBundle currentSuitesBundle = CoverageDataManager.getInstance(project).getCurrentSuitesBundle();
|
||||
presentation.setEnabled(currentSuitesBundle.isCoverageByTestEnabled() &&
|
||||
presentation.setEnabled(currentSuitesBundle != null &&
|
||||
currentSuitesBundle.isCoverageByTestEnabled() &&
|
||||
currentSuitesBundle.getCoverageEngine().wasTestDataCollected(project));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user