Skip to content

Commit

Permalink
EA-534919 NPE: PsiPrimitiveType.getKind
Browse files Browse the repository at this point in the history
GitOrigin-RevId: d44b216734553cb9c21090eb2212a5e7977e4903
  • Loading branch information
akozlova authored and intellij-monorepo-bot committed Jan 18, 2023
1 parent 9d34382 commit e634770
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public static void showDiscoveredTestsByChanges(@NotNull Project project,
.map(m -> UastContextKt.toUElement(m))
.filter(Objects::nonNull)
.map(m -> ObjectUtils.tryCast(m.getJavaPsi(), PsiMethod.class))
.filter(Objects::nonNull)
.filter(m -> Objects.nonNull(m) && !ContainerUtil.exists(m.getParameterList().getParameters(), p -> p.getType() == PsiType.NULL))
.toArray(PsiMethod.ARRAY_FACTORY::create);
});
}
Expand Down

0 comments on commit e634770

Please sign in to comment.