summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-15 17:35:24 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-15 17:35:24 +0000
commit5f08031bbdfe95caf657a975ba1b187004fd5619 (patch)
tree6db8a261c9c46802022585b1b222bd6a3ee53c94 /indra
parentcf119b522f0a5f5b8b28bc56ea1611d342fd1283 (diff)
CID-135
Checker: NULL_RETURNS Function: LLPreviewLSL::postBuild() File: /indra/newview/llpreviewscript.cpp
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpreviewscript.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index 3221745fa3..ae7b30b55c 100644
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -956,7 +956,10 @@ BOOL LLPreviewLSL::postBuild()
const LLInventoryItem* item = getItem();
childSetCommitCallback("desc", LLPreview::onText, this);
- childSetText("desc", item->getDescription());
+ if (item)
+ {
+ childSetText("desc", item->getDescription());
+ }
childSetPrevalidate("desc", &LLTextValidate::validateASCIIPrintableNoPipe);
return LLPreview::postBuild();