Skip to content
Snippets Groups Projects
Commit a6cda1ee authored by Cinder's avatar Cinder
Browse files

STORM-2144 - Guard against null pointers when LLPanelOutfitEdit gets called...

STORM-2144 - Guard against null pointers when LLPanelOutfitEdit gets called before postBuild() on login.
parent e62444c0
No related branches found
No related tags found
No related merge requests found
...@@ -362,6 +362,7 @@ Cinder Roxley ...@@ -362,6 +362,7 @@ Cinder Roxley
STORM-2053 STORM-2053
STORM-2113 STORM-2113
STORM-2127 STORM-2127
STORM-2144
Clara Young Clara Young
Coaldust Numbers Coaldust Numbers
VWR-1095 VWR-1095
......
...@@ -1285,7 +1285,7 @@ void LLPanelOutfitEdit::showFilteredWearablesListView(LLWearableType::EType type ...@@ -1285,7 +1285,7 @@ void LLPanelOutfitEdit::showFilteredWearablesListView(LLWearableType::EType type
showWearablesListView(); showWearablesListView();
//e_list_view_item_type implicitly contains LLWearableType::EType starting from LVIT_SHAPE //e_list_view_item_type implicitly contains LLWearableType::EType starting from LVIT_SHAPE
applyListViewFilter((EListViewItemType) (LVIT_SHAPE + type)); applyListViewFilter(static_cast<EListViewItemType>(LVIT_SHAPE + type));
} }
static void update_status_widget_rect(LLView * widget, S32 right_border) static void update_status_widget_rect(LLView * widget, S32 right_border)
...@@ -1305,8 +1305,10 @@ void LLPanelOutfitEdit::onOutfitChanging(bool started) ...@@ -1305,8 +1305,10 @@ void LLPanelOutfitEdit::onOutfitChanging(bool started)
S32 delta = started ? indicator_delta : 0; S32 delta = started ? indicator_delta : 0;
S32 right_border = status_panel->getRect().getWidth() - delta; S32 right_border = status_panel->getRect().getWidth() - delta;
update_status_widget_rect(mCurrentOutfitName, right_border); if (mCurrentOutfitName)
update_status_widget_rect(mStatus, right_border); update_status_widget_rect(mCurrentOutfitName, right_border);
if (mStatus)
update_status_widget_rect(mStatus, right_border);
indicator->setVisible(started); indicator->setVisible(started);
} }
......
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