diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2012-10-19 19:10:35 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2012-10-19 19:10:35 +0300 |
commit | 155cb976cb807771772b6bab62709709348c918b (patch) | |
tree | 3d633e044d68cf862faac27b4a168f52b7cb00a7 /indra | |
parent | 89ba6b793a5a8b3e0599cd2c8db2f1b479ec0fb4 (diff) |
CHUI-416 FIXED Check if conversationItem is not NULL before calling getType().
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llimfloatercontainer.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/indra/newview/llimfloatercontainer.cpp b/indra/newview/llimfloatercontainer.cpp index c4eeccecbe..14ed0b3c3e 100644 --- a/indra/newview/llimfloatercontainer.cpp +++ b/indra/newview/llimfloatercontainer.cpp @@ -927,15 +927,18 @@ void LLIMFloaterContainer::doToSelected(const LLSD& userdata) const LLConversationItem * conversationItem = getCurSelectedViewModelItem(); uuid_vec_t selected_uuids; - getParticipantUUIDs(selected_uuids); - - if(conversationItem->getType() == LLConversationItem::CONV_PARTICIPANT) - { - doToParticipants(command, selected_uuids); - } - else + if(conversationItem != NULL) { - doToSelectedConversation(command, selected_uuids); + getParticipantUUIDs(selected_uuids); + + if(conversationItem->getType() == LLConversationItem::CONV_PARTICIPANT) + { + doToParticipants(command, selected_uuids); + } + else + { + doToSelectedConversation(command, selected_uuids); + } } } |