From 97f45f78111b6506275634e53b7055a6704bd047 Mon Sep 17 00:00:00 2001 From: Pouryafard75 Date: Thu, 2 Jan 2025 15:02:34 -0500 Subject: [PATCH] ASTDiff: Fixes https://github.com/tsantalis/RefactoringMiner/issues/839 --- .../astDiff/models/ExtendedMultiMappingStore.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/refactoringminer/astDiff/models/ExtendedMultiMappingStore.java b/src/main/java/org/refactoringminer/astDiff/models/ExtendedMultiMappingStore.java index 0e52beca14..be42ff3949 100644 --- a/src/main/java/org/refactoringminer/astDiff/models/ExtendedMultiMappingStore.java +++ b/src/main/java/org/refactoringminer/astDiff/models/ExtendedMultiMappingStore.java @@ -200,7 +200,14 @@ public void add(MappingStore match) { } } - public void addWithMaps(MappingStore match,Map srcCopy, Map dstCopy) { + @Override + public void addMapping(Tree src, Tree dst) { + if (src == null || dst == null) + return; + super.addMapping(src, dst); + } + + public void addWithMaps(MappingStore match, Map srcCopy, Map dstCopy) { for (Mapping mapping : match) { Tree realSrc = srcCopy.get(mapping.first); Tree realDst = dstCopy.get(mapping.second);