diff options
| author | Rye Mutt <rye@alchemyviewer.org> | 2024-07-22 10:58:33 -0400 | 
|---|---|---|
| committer | Rye Mutt <rye@alchemyviewer.org> | 2024-07-22 10:58:33 -0400 | 
| commit | e1c8126d157dc39415d1a743d8f4fdb1277746db (patch) | |
| tree | a5f9c35ea2116f7daea23472d207d81486a44d43 | |
| parent | 75fb5c0d5e54c36327cfdca17e6ccc1682743fe0 (diff) | |
Fix nullptr crash in LLScrollListCtrl::getSelectedItemLabel
| -rw-r--r-- | indra/llui/llscrolllistctrl.cpp | 6 | 
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; | 
