Don't instantiate LLTextParser::getInstance before user logged in.

This commit is contained in:
Aleric Inglewood
2011-08-02 23:26:02 +02:00
committed by Siana Gearz
parent 2ceebebb49
commit f297068ec0
3 changed files with 18 additions and 7 deletions

View File

@@ -497,6 +497,10 @@ void LLFloaterChat::addChat(const LLChat& chat,
//static
void LLFloaterChat::triggerAlerts(const std::string& text)
{
// Cannot instantiate LLTextParser before logging in.
if (gDirUtilp->getLindenUserDir(true).empty())
return;
LLTextParser* parser = LLTextParser::getInstance();
// bool spoken=FALSE;
for (S32 i=0;i<parser->mHighlights.size();i++)