Skip to content

Commit

Permalink
fix(java): guard against possible null sym field (#4892)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysachs committed Apr 21, 2021
1 parent 366dac5 commit b5e52f1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -434,7 +434,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()) {
continue;
}

Expand Down

0 comments on commit b5e52f1

Please sign in to comment.