FIRE-14896; Don't crash if FS AO folder contains another folder with an empty name.

meow-7.2.2
Nicky 2014-11-02 23:58:18 +01:00
parent 217f337a86
commit 4a3494552c
1 changed files with 7 additions and 0 deletions

View File

@ -1039,6 +1039,13 @@ void AOEngine::update()
{
LLViewerInventoryCategory* currentCategory=categories->at(index);
const std::string& setFolderName=currentCategory->getName();
if( setFolderName.empty())
{
LL_WARNS("AOEngine") << "Folder with emtpy name in AO folder" << LL_ENDL;
continue;
}
std::vector<std::string> params;
LLStringUtil::getTokens(setFolderName,params,":");