diff --git a/src/main/java/org/refactoringminer/astDiff/matchers/wrappers/CommentMatcher.java b/src/main/java/org/refactoringminer/astDiff/matchers/wrappers/CommentMatcher.java index b3ab85ee7..7eb621564 100644 --- a/src/main/java/org/refactoringminer/astDiff/matchers/wrappers/CommentMatcher.java +++ b/src/main/java/org/refactoringminer/astDiff/matchers/wrappers/CommentMatcher.java @@ -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 commonComment : commentListDiff.getCommonComments()) { Tree srcComment = TreeUtilFunctions.findByLocationInfo(srcTree, commonComment.getLeft().getLocationInfo()); Tree dstComment = TreeUtilFunctions.findByLocationInfo(dstTree, commonComment.getRight().getLocationInfo());