mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
NPE
This commit is contained in:
+5
-1
@@ -158,7 +158,11 @@ public class EmptyMethodInspection extends GlobalJavaInspectionTool {
|
||||
if (!refMethod.isBodyEmpty()) {
|
||||
return false;
|
||||
}
|
||||
if (AnnotationUtil.isAnnotated(refMethod.getElement(), EXCLUDE_ANNOS)) {
|
||||
final PsiModifierListOwner owner = refMethod.getElement();
|
||||
if (owner == null) {
|
||||
return false;
|
||||
}
|
||||
if (AnnotationUtil.isAnnotated(owner, EXCLUDE_ANNOS)) {
|
||||
return false;
|
||||
}
|
||||
for (final Object extension : Extensions.getExtensions(ExtensionPoints.EMPTY_METHOD_TOOL)) {
|
||||
|
||||
Reference in New Issue
Block a user