diff --git a/indra/newview/lloutfitslist.cpp b/indra/newview/lloutfitslist.cpp index 1dc127f8e0..fae02f4e05 100644 --- a/indra/newview/lloutfitslist.cpp +++ b/indra/newview/lloutfitslist.cpp @@ -1780,11 +1780,18 @@ bool LLOutfitAccordionCtrlTab::handleToolTip(S32 x, S32 y, MASK mask) // Make thumbnail tooltip work properly //if (y >= getLocalRect().getHeight() - getHeaderHeight()) static LLCachedControl showInventoryThumbnailTooltips(gSavedSettings, "FSShowInventoryThumbnailTooltips"); - if (showInventoryThumbnailTooltips && y >= getLocalRect().getHeight() - getHeaderHeight() && gInventory.getCategory(mFolderID)->getThumbnailUUID().notNull()) + if (showInventoryThumbnailTooltips && y >= getLocalRect().getHeight() - getHeaderHeight()) { LLSD params; params["inv_type"] = LLInventoryType::IT_CATEGORY; LLViewerInventoryCategory* cat = gInventory.getCategory(mFolderID); + // Make thumbnail tooltip work properly + if (!cat || cat->getThumbnailUUID().isNull()) + { + return LLAccordionCtrlTab::handleToolTip(x, y, mask); + } + // + if (cat) { params["thumbnail_id"] = cat->getThumbnailUUID();