Fix nullptr crash in LLScrollListCtrl::getSelectedItemLabel
parent
983e7772b4
commit
fe76026a3f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue