diff options
| author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2025-10-01 17:54:46 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-01 17:54:46 +0300 |
| commit | 503affdc9799311e6adeaf0271e470c46f8ceda8 (patch) | |
| tree | 33754bfbead09e11a253d6c1d436d8db5ebc566c | |
| parent | ee6a9e7ed10f775bce312a0b8911ea8721342250 (diff) | |
#vp484 Crash in LLFolderViewFolder::setOpen
| -rw-r--r-- | indra/llui/llfolderviewitem.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/llui/llfolderviewitem.cpp b/indra/llui/llfolderviewitem.cpp index 9ca77dbe46..0f9fd35868 100644 --- a/indra/llui/llfolderviewitem.cpp +++ b/indra/llui/llfolderviewitem.cpp @@ -2106,10 +2106,14 @@ void LLFolderViewFolder::setOpen(bool openitem) { // navigateToFolder can destroy this view // delay it in case setOpen was called from click or key processing - doOnIdleOneTime([this]() - { - getViewModelItem()->navigateToFolder(); - }); + LLPointer<LLFolderViewModelItem> view_model_item = mViewModelItem; + doOnIdleOneTime([view_model_item]() + { + if (view_model_item.notNull()) + { + view_model_item.get()->navigateToFolder(); + } + }); } else { |
