1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 455571 - Unable to rename C/C++ project if project has excluded

source folder entry
This commit is contained in:
Sergey Prigogin 2015-01-07 12:21:21 -08:00
parent 509d7cd337
commit 32cdeab66b

View file

@ -172,9 +172,11 @@ public class HeaderFileReferenceAdjuster {
CoreModel coreModel = CoreModel.getDefault();
for (IFile file : affectedFiles) {
ITranslationUnit tu = (ITranslationUnit) coreModel.create(file);
if (workingCopyManager.findSharedWorkingCopy(tu) != null)
continue; // Shared working copies have already been processed.
addFileChange(tu, changes, checker, progress.newChild(1));
if (tu != null) {
if (workingCopyManager.findSharedWorkingCopy(tu) != null)
continue; // Shared working copies have already been processed.
addFileChange(tu, changes, checker, progress.newChild(1));
}
}
if (!changes.isEmpty()) {