CHUI-584 : Fixed : Viewer crash when clicking on view/sort options drop down in conversation floater:

Protection from a lack of the current selection. It need for the newly created floater, which still is not finished adding the first conversation item.
meow-7.2.2
AlexanderP ProductEngine 2012-12-12 19:05:40 +02:00
parent 9275379e3c
commit 322fb00630
1 changed files with 6 additions and 1 deletions

View File

@ -916,7 +916,12 @@ void LLFloaterIMContainer::getParticipantUUIDs(uuid_vec_t& selected_uuids)
//Find the conversation floater associated with the selected id
const LLConversationItem * conversation_item = getCurSelectedViewModelItem();
if(conversationItem->getType() == LLConversationItem::CONV_PARTICIPANT)
if (NULL == conversation_item)
{
return;
}
if (conversation_item->getType() == LLConversationItem::CONV_PARTICIPANT)
{
getSelectedUUIDs(selected_uuids);
}