summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterregiondebugconsole.cpp
diff options
context:
space:
mode:
authorKyle Ambroff <ambroff@lindenlab.com>2010-10-25 10:08:42 -0700
committerKyle Ambroff <ambroff@lindenlab.com>2010-10-25 10:08:42 -0700
commit7be4f43d1704a5d5318e4fd32ab95a132cd26ea3 (patch)
tree4cc80eb4411ffbcab766973a3523e41b18432c2d /indra/newview/llfloaterregiondebugconsole.cpp
parent9b97fc3f309518155f2b468ea94fc6f373620f2c (diff)
Null checks for mOutput for good luck.
Diffstat (limited to 'indra/newview/llfloaterregiondebugconsole.cpp')
-rw-r--r--indra/newview/llfloaterregiondebugconsole.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/indra/newview/llfloaterregiondebugconsole.cpp b/indra/newview/llfloaterregiondebugconsole.cpp
index 0e61fb8e0a..b3b7645dd4 100644
--- a/indra/newview/llfloaterregiondebugconsole.cpp
+++ b/indra/newview/llfloaterregiondebugconsole.cpp
@@ -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;