#4069 Fix crash at handleToolTip

master
Andrey Kleshchev 2025-05-13 18:21:23 +03:00 committed by Andrey Kleshchev
parent 6b0cebe9c9
commit c94e00a10b
1 changed files with 6 additions and 1 deletions

View File

@ -1396,7 +1396,12 @@ bool LLOutfitAccordionCtrlTab::handleToolTip(S32 x, S32 y, MASK mask)
{
LLSD params;
params["inv_type"] = LLInventoryType::IT_CATEGORY;
params["thumbnail_id"] = gInventory.getCategory(mFolderID)->getThumbnailUUID();
LLViewerInventoryCategory* cat = gInventory.getCategory(mFolderID);
if (cat)
{
params["thumbnail_id"] = cat->getThumbnailUUID();
}
// else consider returning
params["item_id"] = mFolderID;
LLToolTipMgr::instance().show(LLToolTip::Params()