Skip to content

Commit db3b7cd

Browse files
checking-if-list-is-null (#381)
1 parent b5755ef commit db3b7cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/checkmarx/intellij/tool/window/actions/selection/ProjectSelectionGroup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ private void populate(boolean inherit) {
7272
setEnabled(false);
7373
CompletableFuture.supplyAsync((Supplier<List<com.checkmarx.ast.project.Project>>) () -> {
7474
try {
75-
return com.checkmarx.intellij.commands.Project.getList();
75+
List<com.checkmarx.ast.project.Project> list = com.checkmarx.intellij.commands.Project.getList();
76+
return list != null ? list : Collections.emptyList();
7677
} catch (Exception e) {
7778
LOGGER.warn(e);
7879
}

0 commit comments

Comments
 (0)