mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 09:45:39 +02:00
fixed NPE
This commit is contained in:
parent
41740da7ba
commit
9dc44a1309
1 changed files with 9 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue