diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2025-05-13 18:21:23 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2025-05-13 19:23:23 +0300 | 
| commit | c94e00a10ba6a61bbf5f53fdb2b1c6e345743068 (patch) | |
| tree | 2bd0daaed4028a6b288f69100f8cdaa5130e9628 | |
| parent | 6b0cebe9c96cf0a146d084ab7bca13f23561258f (diff) | |
#4069 Fix crash at handleToolTip
| -rw-r--r-- | indra/newview/lloutfitslist.cpp | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/indra/newview/lloutfitslist.cpp b/indra/newview/lloutfitslist.cpp index 9d8493549d..4ad4cb8d2c 100644 --- a/indra/newview/lloutfitslist.cpp +++ b/indra/newview/lloutfitslist.cpp @@ -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() | 
