mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inconsistency between source/target directories during package move
EA-39065 - AIOOBE: MoveClassesOrPackagesProcessor.performRefactoring
This commit is contained in:
+5
@@ -521,6 +521,11 @@ public class MoveClassesOrPackagesProcessor extends BaseRefactoringProcessor {
|
||||
}
|
||||
} else {
|
||||
for (PsiDirectory directory : directories) {
|
||||
if (myMoveDestination.verify(directory) != null) {
|
||||
//e.g. directory is excluded so there is no source root for it, hence target directory would be missed from newDirectories
|
||||
continue;
|
||||
}
|
||||
|
||||
oldToNewElementsMapping.put(directory, newDirectories[i++]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user