summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-02-15 17:35:45 +0000
committerTofu Linden <tofu.linden@lindenlab.com>2010-02-15 17:35:45 +0000
commitfecaf7b64fdc3d9ebf1d32ddb1ed8b50904db534 (patch)
tree86419b7709c3b5c3116e2c8311d6d916373714ea /indra/newview
parent5f08031bbdfe95caf657a975ba1b187004fd5619 (diff)
CID-135 followup
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpreviewscript.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/llpreviewscript.cpp b/indra/newview/llpreviewscript.cpp
index ae7b30b55c..f5a9f82d50 100644
--- a/indra/newview/llpreviewscript.cpp
+++ b/indra/newview/llpreviewscript.cpp
@@ -955,11 +955,12 @@ BOOL LLPreviewLSL::postBuild()
{
const LLInventoryItem* item = getItem();
- childSetCommitCallback("desc", LLPreview::onText, this);
+ llassert(item);
if (item)
{
childSetText("desc", item->getDescription());
}
+ childSetCommitCallback("desc", LLPreview::onText, this);
childSetPrevalidate("desc", &LLTextValidate::validateASCIIPrintableNoPipe);
return LLPreview::postBuild();