diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-13 14:08:58 +0000 | 
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-13 14:08:58 +0000 | 
| commit | d7060eb323f7cfebb7576e2999f782e8617e40e8 (patch) | |
| tree | a3b94ab1c2559962a1e284d142fc9efa573cf536 | |
| parent | cf69f03af17070152b5ca2772e7addfd0dcc4800 (diff) | |
CID-205
Checker: REVERSE_INULL
Function: LLPanel::fromXML(LLPointer<LLXMLNode>, LLView *, LLPointer<LLXMLNode>)
File: /indra/llui/llpanel.cpp
| -rw-r--r-- | indra/llui/llpanel.cpp | 8 | 
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/llui/llpanel.cpp b/indra/llui/llpanel.cpp index 7b406e090a..d963cf4c98 100644 --- a/indra/llui/llpanel.cpp +++ b/indra/llui/llpanel.cpp @@ -397,6 +397,12 @@ LLView* LLPanel::fromXML(LLXMLNodePtr node, LLView* parent, LLXMLNodePtr output_  		if (!panelp)  		{  			panelp = LLUICtrlFactory::getInstance()->createFactoryPanel(name); +			llassert(panelp); +			 +			if (!panelp) +			{ +				return NULL; // :( +			}  		}  	} @@ -414,7 +420,7 @@ LLView* LLPanel::fromXML(LLXMLNodePtr node, LLView* parent, LLXMLNodePtr output_  	panelp->mCommitCallbackRegistrar.popScope();  	panelp->mEnableCallbackRegistrar.popScope(); -	if (panelp && !panelp->getFactoryMap().empty()) +	if (!panelp->getFactoryMap().empty())  	{  		LLUICtrlFactory::instance().popFactoryFunctions();  	}  | 
