Checker: NULL_RETURNS
Function: LLPreviewLSL::postBuild()
File: /indra/newview/llpreviewscript.cpp
master
Tofu Linden 2010-02-15 17:35:24 +00:00
parent cf119b522f
commit 5f08031bbd
1 changed files with 4 additions and 1 deletions

View File

@ -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();