Fix nullptr crash in LLScrollListCtrl::getSelectedItemLabel

meow-7.2.2
Rye Mutt 2024-07-22 10:58:33 -04:00 committed by Andrey Kleshchev
parent 983e7772b4
commit fe76026a3f
1 changed files with 5 additions and 1 deletions

View File

@ -1479,7 +1479,11 @@ const std::string LLScrollListCtrl::getSelectedItemLabel(S32 column) const
item = getFirstSelected();
if (item)
{
return item->getColumn(column)->getValue().asString();
auto col = item->getColumn(column);
if(col)
{
return col->getValue().asString();
}
}
return LLStringUtil::null;