Skip to content

Commit a55edef

Browse files
committed
Fix NullPointerException in MoveSourceFolder refactoring
1 parent 0a8de27 commit a55edef

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/org/codetracker/MethodTrackerChangeHistory.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,6 +658,9 @@ public Set<Method> isMethodContainerChanged(UMLModelDiff umlModelDiffAll, Collec
658658
for (MovedClassToAnotherSourceFolder movedClassToAnotherSourceFolder : moveSourceFolderRefactoring.getMovedClassesToAnotherSourceFolder()) {
659659
UMLClass originalClass = movedClassToAnotherSourceFolder.getOriginalClass();
660660
UMLClass movedClass = movedClassToAnotherSourceFolder.getMovedClass();
661+
if(originalClass == null || movedClass == null) {
662+
continue;
663+
}
661664
List<UMLOperation> leftOperations = new ArrayList<UMLOperation>();
662665
leftOperations.addAll(originalClass.getOperations());
663666
for (UMLAnonymousClass anonymous : originalClass.getAnonymousClassList()) {

0 commit comments

Comments
 (0)