mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-54181 - NPE: NullableStuffInspectionBase.checkNullableStuffForMethod
This commit is contained in:
+1
-1
@@ -395,7 +395,7 @@ public class NullableStuffInspectionBase extends BaseJavaBatchLocalInspectionToo
|
||||
parameters[i].getNameIdentifier(); //be sure that corresponding tree element available
|
||||
PsiAnnotation annotation = AnnotationUtil.findAnnotation(parameters[i], nullableManager.getNotNulls());
|
||||
PsiElement psiElement = annotation;
|
||||
if (!annotation.isPhysical()) {
|
||||
if (annotation == null || !annotation.isPhysical()) {
|
||||
psiElement = parameters[i].getNameIdentifier();
|
||||
if (psiElement == null) continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user