diff options
| -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();  	} | 
