Skip to content

Commit

Permalink
Make sure JDK 11 doesnt crash
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Jan 20, 2023
1 parent 63d3395 commit 8f79c19
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public NonStaticImport() {}
@Override
public Description matchIdentifier(IdentifierTree tree, VisitorState state) {
Symbol symbol = ASTHelpers.getSymbol(tree);
if (!isMatch(symbol, state)) {
if (symbol == null || !isMatch(symbol, state)) {
return Description.NO_MATCH;
}

Expand Down

0 comments on commit 8f79c19

Please sign in to comment.