Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
VISTALL committed Sep 8, 2024
1 parent 0db73b2 commit 048962d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ public void visitMethod(PsiMethod method) {

private void checkImplicitCallToSuper(PsiMethod method) {
final PsiClass containingClass = method.getContainingClass();
assert containingClass != null : method.toString();
if (containingClass == null) {
return;
}

final PsiClass superClass = containingClass.getSuperClass();
if (hasDefaultDeprecatedConstructor(superClass)) {
if (superClass instanceof PsiAnonymousClass) {
Expand Down

0 comments on commit 048962d

Please sign in to comment.