mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
+1
-1
@@ -320,7 +320,7 @@ public class Java15APIUsageInspection extends BaseJavaLocalInspectionTool {
|
||||
}
|
||||
|
||||
private void registerError(PsiJavaCodeReferenceElement reference, LanguageLevel api) {
|
||||
if (isInProject(reference)) {
|
||||
if (reference != null && isInProject(reference)) {
|
||||
myHolder.registerProblem(reference, InspectionsBundle.message("inspection.1.5.problem.descriptor", getPresentable(api)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user