mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 18:55: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) {
|
||||
IPathEntryContainer peContainer = CoreModel.getPathEntryContainer(
|
||||
pe.getPath(), cProject);
|
||||
if (peContainer != null) {
|
||||
if (peContainer instanceof IPathEntryContainerExtension) {
|
||||
IPathEntryContainerExtension contExt = (IPathEntryContainerExtension) peContainer;
|
||||
if (!contExt.isEmpty(resPath)) {
|
||||
|
@ -1252,6 +1253,7 @@ public class CoreModel {
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
// then the user specified scanner info
|
||||
else if ((pe.getEntryKind() & PATH_ENTRY_MASK) != 0) {
|
||||
IPath affectedPath = pe.getPath();
|
||||
|
|
Loading…
Add table
Reference in a new issue