summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2024-07-22 10:58:33 -0400
committerRye Mutt <rye@alchemyviewer.org>2024-07-22 10:58:33 -0400
commite1c8126d157dc39415d1a743d8f4fdb1277746db (patch)
treea5f9c35ea2116f7daea23472d207d81486a44d43 /indra/llui
parent75fb5c0d5e54c36327cfdca17e6ccc1682743fe0 (diff)
Fix nullptr crash in LLScrollListCtrl::getSelectedItemLabel
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llscrolllistctrl.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp
index 74a9641836..1d9564d107 100644
--- a/indra/llui/llscrolllistctrl.cpp
+++ b/indra/llui/llscrolllistctrl.cpp
@@ -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;