From ee2b2967a9d17bd38575dad6ab9a7c0c5d52af2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 17 Apr 2016 19:18:42 +0000 Subject: Facebook: Oops, don't load attachments when there are none git-svn-id: http://svn.miranda-ng.org/main/trunk@16707 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/FacebookRM') diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index 29a7a42912..866a140e8b 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -289,7 +289,7 @@ void parseAttachments(FacebookProto *proto, std::string *message_text, const JSO std::string type; const JSONNode &attachments_ = delta_["attachments"]; - if (!attachments_) + if (!attachments_ || attachments_.empty()) return; for (auto itAttachment = attachments_.begin(); itAttachment != attachments_.end(); ++itAttachment) { -- cgit v1.2.3