Skip to content
Snippets Groups Projects
Commit 58608551 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix nullptr crash in landmark panel

parent 8a3fde7b
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -657,11 +657,11 @@ bool LLLandmarksPanel::isActionEnabled(const LLSD& userdata) const
if ("collapse_all" == command_name)
{
return has_expanded_folders(mCurrentSelectedList->getRootFolder());
return mCurrentSelectedList && has_expanded_folders(mCurrentSelectedList->getRootFolder());
}
else if ("expand_all" == command_name)
{
return has_collapsed_folders(mCurrentSelectedList->getRootFolder());
return mCurrentSelectedList && has_collapsed_folders(mCurrentSelectedList->getRootFolder());
}
else if ("sort_by_date" == command_name)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment