Skip to content

Commit

Permalink
ASTDiff: Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
pouryafard75 committed Oct 2, 2024
1 parent f8d5900 commit 9055f39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public CommentMatcher(UMLCommentListDiff commonComment) {

@Override
public void match(Tree srcTree, Tree dstTree, ExtendedMultiMappingStore mappingStore) {
if (commentListDiff.getCommonComments() != null) {
if (commentListDiff != null) {
for (Pair<UMLComment, UMLComment> commonComment : commentListDiff.getCommonComments()) {
Tree srcComment = TreeUtilFunctions.findByLocationInfo(srcTree, commonComment.getLeft().getLocationInfo());
Tree dstComment = TreeUtilFunctions.findByLocationInfo(dstTree, commonComment.getRight().getLocationInfo());
Expand Down

0 comments on commit 9055f39

Please sign in to comment.