Skip to content

Commit

Permalink
Fixed potential null pointer in TypeResolver (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto authored Sep 2, 2021
1 parent 1cc96bc commit e27042d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public void ensureUniqueType(Node node) {
types = typeState.keySet();
} else {
Type root = oldType.getRoot();
types = typeState.get(root);
types = typeState.computeIfAbsent(root, x -> new ArrayList<>());
}

updateType(node, types);
Expand Down

0 comments on commit e27042d

Please sign in to comment.