mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 11:15:38 +02:00
fixed NPE
This commit is contained in:
parent
41740da7ba
commit
9dc44a1309
1 changed files with 9 additions and 7 deletions
|
@ -1240,6 +1240,7 @@ public class CoreModel {
|
||||||
if (pe.getEntryKind() == IPathEntry.CDT_CONTAINER) {
|
if (pe.getEntryKind() == IPathEntry.CDT_CONTAINER) {
|
||||||
IPathEntryContainer peContainer = CoreModel.getPathEntryContainer(
|
IPathEntryContainer peContainer = CoreModel.getPathEntryContainer(
|
||||||
pe.getPath(), cProject);
|
pe.getPath(), cProject);
|
||||||
|
if (peContainer != null) {
|
||||||
if (peContainer instanceof IPathEntryContainerExtension) {
|
if (peContainer instanceof IPathEntryContainerExtension) {
|
||||||
IPathEntryContainerExtension contExt = (IPathEntryContainerExtension) peContainer;
|
IPathEntryContainerExtension contExt = (IPathEntryContainerExtension) peContainer;
|
||||||
if (!contExt.isEmpty(resPath)) {
|
if (!contExt.isEmpty(resPath)) {
|
||||||
|
@ -1252,6 +1253,7 @@ public class CoreModel {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// then the user specified scanner info
|
// then the user specified scanner info
|
||||||
else if ((pe.getEntryKind() & PATH_ENTRY_MASK) != 0) {
|
else if ((pe.getEntryKind() & PATH_ENTRY_MASK) != 0) {
|
||||||
IPath affectedPath = pe.getPath();
|
IPath affectedPath = pe.getPath();
|
||||||
|
|
Loading…
Add table
Reference in a new issue