diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-09-19 14:42:17 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-09-19 14:42:17 +0000 |
commit | 9ed60637b814fb9303b4bebefacf8e88e5b52383 (patch) | |
tree | 9a2adffac562fdd289559f1b5048e45e211400be /protocols/FacebookRM | |
parent | b51fb25ef007e001e62725fe776fd1675ca51a21 (diff) |
Facebook: Fix occasional crash
git-svn-id: http://svn.miranda-ng.org/main/trunk@10518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/chat.cpp | 4 |
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)
|