EA-54181 - NPE: NullableStuffInspectionBase.checkNullableStuffForMethod

This commit is contained in:
Anna Kozlova
2014-02-24 19:27:29 +01:00
parent f64f1ef111
commit aa61e881de
@@ -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;
}