mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-09 19:43:27 +02:00
fixed NPE
This commit is contained in:
parent
4c924a5283
commit
9e3714d448
1 changed files with 2 additions and 2 deletions
|
@ -468,7 +468,7 @@ public class CPElement {
|
||||||
res = root.getFolder(path);
|
res = root.getFolder(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (res.getType() != IResource.PROJECT) {
|
if (res.getType() != IResource.PROJECT && project != null) {
|
||||||
isMissing = !project.isOnSourceRoot(res);
|
isMissing = !project.isOnSourceRoot(res);
|
||||||
}
|
}
|
||||||
exclusion = ((IIncludeEntry) curr).getExclusionPatterns();
|
exclusion = ((IIncludeEntry) curr).getExclusionPatterns();
|
||||||
|
@ -485,7 +485,7 @@ public class CPElement {
|
||||||
res = root.getFolder(path);
|
res = root.getFolder(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (res.getType() != IResource.PROJECT) {
|
if (res.getType() != IResource.PROJECT && project != null) {
|
||||||
isMissing = !project.isOnSourceRoot(res);
|
isMissing = !project.isOnSourceRoot(res);
|
||||||
}
|
}
|
||||||
exclusion = ((IMacroEntry) curr).getExclusionPatterns();
|
exclusion = ((IMacroEntry) curr).getExclusionPatterns();
|
||||||
|
|
Loading…
Add table
Reference in a new issue