fixing throwing exception

This was SVN commit r7146.
This commit is contained in:
sluzky 2009-09-26 19:18:15 +00:00
parent 90f6641c1d
commit e31ca32479

View File

@ -314,7 +314,7 @@ PS_RESULT GUI<T>::GetSettingPointer(const IGUIObject *pObject, const CStr& Setti
std::map<CStr, SGUISetting>::const_iterator it = pObject->m_Settings.find(Setting);
if (it == pObject->m_Settings.end())
throw PSERROR_GUI_InvalidSetting();
return PS_FAIL;
if (it->second.m_pSetting == NULL)
return PS_FAIL;