Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mickaelistria committed Aug 8, 2024
1 parent a5e8b88 commit dfaa180
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ public int getKind() {

@Override
public int getModifiers() {
int extraModifiers = getDeclaringClass().isInterface() &&
var outerClass = getDeclaringClass();
int extraModifiers = outerClass != null &&
outerClass.isInterface() &&
this.methodSymbol != null &&
!this.methodSymbol.isDefault() &&
!this.methodSymbol.isStatic() ? Modifier.ABSTRACT : 0;
Expand Down

0 comments on commit dfaa180

Please sign in to comment.