diff options
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r-- | protocols/FacebookRM/src/json.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index d6aaa91de5..9cbfdcb5f7 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -391,6 +391,9 @@ void parseAttachments2(FacebookProto *proto, std::string *message_text, const JS const JSONNode &attach_ = it["attachments"]["mercury"]; + if (!attach_) + return; + /* const JSONNode &attachments = it["attachments"]; for (auto itAttachment = attachments.begin(); itAttachment != attachments.end(); ++itAttachment) { const JSONNode &attach_ = (*itAttachment)["mercury"];*/ |