Skip to content
Snippets Groups Projects
Commit 3ce373be authored by andreykproductengine's avatar andreykproductengine
Browse files

MAINT-5435 missing null check

parent 1d72c0ec
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,11 @@ void LLFloaterSidePanelContainer::closeFloater(bool app_quitting) ...@@ -69,7 +69,11 @@ void LLFloaterSidePanelContainer::closeFloater(bool app_quitting)
LLSidepanelAppearance* panel_appearance = dynamic_cast<LLSidepanelAppearance*>(getPanel("appearance")); LLSidepanelAppearance* panel_appearance = dynamic_cast<LLSidepanelAppearance*>(getPanel("appearance"));
if ( panel_appearance ) if ( panel_appearance )
{ {
panel_appearance->getWearable()->onClose(); LLPanelEditWearable *edit_wearable_ptr = panel_appearance->getWearable();
if (edit_wearable_ptr)
{
edit_wearable_ptr->onClose();
}
panel_appearance->showOutfitsInventoryPanel(); panel_appearance->showOutfitsInventoryPanel();
} }
} }
......
...@@ -198,7 +198,7 @@ void LLSidepanelAppearance::updateToVisibility(const LLSD &new_visibility) ...@@ -198,7 +198,7 @@ void LLSidepanelAppearance::updateToVisibility(const LLSD &new_visibility)
if (is_outfit_edit_visible || is_wearable_edit_visible) if (is_outfit_edit_visible || is_wearable_edit_visible)
{ {
const LLViewerWearable *wearable_ptr = mEditWearable->getWearable(); const LLViewerWearable *wearable_ptr = mEditWearable ? mEditWearable->getWearable() : NULL;
if (!wearable_ptr) if (!wearable_ptr)
{ {
LL_WARNS() << "Visibility change to invalid wearable" << LL_ENDL; LL_WARNS() << "Visibility change to invalid wearable" << LL_ENDL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment