mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 211522 fix NPEs.
This commit is contained in:
parent
d8ed4e7b96
commit
2997c0991e
1 changed files with 6 additions and 3 deletions
|
@ -2713,8 +2713,11 @@ public class CProjectDescriptionManager implements ICProjectDescriptionManager {
|
|||
generateCElementDeltasFromLanguageDelta(el, ld, list);
|
||||
} else {
|
||||
if(newRcDes.getType() == ICSettingBase.SETTING_FOLDER){
|
||||
ICFolderDescription oldFoDes = oldRcDes.getType() == ICSettingBase.SETTING_FOLDER ?
|
||||
(ICFolderDescription)oldRcDes : null;
|
||||
ICFolderDescription oldFoDes = null;
|
||||
if (oldRcDes != null) {
|
||||
if (oldRcDes.getType() == ICSettingBase.SETTING_FOLDER)
|
||||
oldFoDes = (ICFolderDescription)oldRcDes;
|
||||
}
|
||||
ICDescriptionDelta folderDelta = createDelta((ICFolderDescription)newRcDes, oldFoDes);
|
||||
if(folderDelta != null){
|
||||
ICDescriptionDelta children[] = folderDelta.getChildren();
|
||||
|
@ -3306,7 +3309,7 @@ public class CProjectDescriptionManager implements ICProjectDescriptionManager {
|
|||
return null;
|
||||
|
||||
ICResourceDescription rcDes = cfgDes.getResourceDescription(path, false);
|
||||
if(!ignoreExcludeStatus && rcDes.isExcluded())
|
||||
if(rcDes == null || (!ignoreExcludeStatus && rcDes.isExcluded()))
|
||||
return null;
|
||||
|
||||
if(rcDes.getType() == ICSettingBase.SETTING_FOLDER){
|
||||
|
|
Loading…
Add table
Reference in a new issue