mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE
This commit is contained in:
+2
-1
@@ -93,7 +93,8 @@ public class RedundantThrowsDeclarationInspection extends GlobalJavaBatchInspect
|
||||
if (psiManager.areElementsEquivalent(s, throwsResolvedType)) {
|
||||
if (problems == null) problems = new ArrayList<>(1);
|
||||
|
||||
if (refMethod.isAbstract() || refMethod.getOwnerClass().isInterface()) {
|
||||
RefClass ownerClass = refMethod.getOwnerClass();
|
||||
if (refMethod.isAbstract() || ownerClass != null && ownerClass.isInterface()) {
|
||||
problems.add(manager.createProblemDescriptor(throwsRef, InspectionsBundle.message(
|
||||
"inspection.redundant.throws.problem.descriptor", "<code>#ref</code>"), new MyQuickFix(processor, throwsClassName), ProblemHighlightType.LIKE_UNUSED_SYMBOL,
|
||||
false));
|
||||
|
||||
Reference in New Issue
Block a user