1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 09:45:39 +02:00

fixed NPE

This commit is contained in:
David Inglis 2005-07-05 14:27:39 +00:00
parent 41740da7ba
commit 9dc44a1309

View file

@ -1240,17 +1240,19 @@ public class CoreModel {
if (pe.getEntryKind() == IPathEntry.CDT_CONTAINER) {
IPathEntryContainer peContainer = CoreModel.getPathEntryContainer(
pe.getPath(), cProject);
if (peContainer instanceof IPathEntryContainerExtension) {
IPathEntryContainerExtension contExt = (IPathEntryContainerExtension) peContainer;
if (!contExt.isEmpty(resPath)) {
if (peContainer != null) {
if (peContainer instanceof IPathEntryContainerExtension) {
IPathEntryContainerExtension contExt = (IPathEntryContainerExtension) peContainer;
if (!contExt.isEmpty(resPath)) {
rc = false;
break;
}
}
else if (peContainer.getPathEntries().length > 0) {
rc = false;
break;
}
}
else if (peContainer.getPathEntries().length > 0) {
rc = false;
break;
}
}
// then the user specified scanner info
else if ((pe.getEntryKind() & PATH_ENTRY_MASK) != 0) {