Null checks for mOutput for good luck.

meow-7.2.2
Kyle Ambroff 2010-10-25 10:08:42 -07:00
parent 9b97fc3f30
commit 7be4f43d17
1 changed files with 11 additions and 4 deletions

View File

@ -99,15 +99,22 @@ namespace
/*virtual*/
void error(U32 status, const std::string& reason)
{
mOutput->appendText(
UNABLE_TO_SEND_COMMAND + PROMPT,
false);
if (mOutput)
{
mOutput->appendText(
UNABLE_TO_SEND_COMMAND + PROMPT,
false);
}
}
/*virtual*/
void result(const LLSD& content)
{
mOutput->appendText(content.asString() + PROMPT, false);
if (mOutput)
{
mOutput->appendText(
content.asString() + PROMPT, false);
}
}
LLTextEditor * mOutput;