diff options
-rw-r--r-- | protocols/FacebookRM/src/json.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |