Skip to content
Snippets Groups Projects
Commit 51e2ee7b authored by Tofu Linden's avatar Tofu Linden
Browse files

CID-145

Checker: NULL_RETURNS
File: /indra/llui/llscrolllistctrl.cpp
parent 0cf46fe1
No related branches found
No related tags found
No related merge requests found
...@@ -283,8 +283,13 @@ void LLFloaterTopObjects::updateSelectionInfo() ...@@ -283,8 +283,13 @@ void LLFloaterTopObjects::updateSelectionInfo()
std::string object_id_string = object_id.asString(); std::string object_id_string = object_id.asString();
childSetValue("id_editor", LLSD(object_id_string)); childSetValue("id_editor", LLSD(object_id_string));
childSetValue("object_name_editor", list->getFirstSelected()->getColumn(1)->getValue().asString()); LLScrollListItem* sli = list->getFirstSelected();
childSetValue("owner_name_editor", list->getFirstSelected()->getColumn(2)->getValue().asString()); llassert(sli);
if (sli)
{
childSetValue("object_name_editor", sli->getColumn(1)->getValue().asString());
childSetValue("owner_name_editor", sli->getColumn(2)->getValue().asString());
}
} }
// static // static
......
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