Skip to content

Commit

Permalink
chore: prevent NPE (#5589)
Browse files Browse the repository at this point in the history
  • Loading branch information
salguarnieri committed Apr 19, 2023
1 parent 0389aa8 commit aba8f29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ public JavaNode visitClassDef(JCClassDecl classDef, TreeContext owner) {
for (JCTree member : classDef.getMembers()) {
if (member instanceof JCMethodDecl) {
JCMethodDecl method = (JCMethodDecl) member;
if (method.sym.isConstructor()) {
if (method.sym != null && method.sym.isConstructor()) {
// Already handled above.
continue;
}
Expand Down

0 comments on commit aba8f29

Please sign in to comment.