summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/FacebookRM/src/chat.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/chat.cpp b/protocols/FacebookRM/src/chat.cpp
index 5d2868eecf..178ab890d4 100644
--- a/protocols/FacebookRM/src/chat.cpp
+++ b/protocols/FacebookRM/src/chat.cpp
@@ -47,7 +47,9 @@ void FacebookProto::UpdateChat(const TCHAR *tchat_id, const char *id, const char
// TODO: keep it here or move it somewhere else?
std::map<std::tstring, facebook_chatroom*>::iterator chatroom = facy.chat_rooms.find(tchat_id);
- chatroom->second->message_readers = "";
+ if (chatroom != facy.chat_rooms.end()) {
+ chatroom->second->message_readers = "";
+ }
}
void FacebookProto::RenameChat(const char *chat_id, const char *name)