From 7daaae893a1e65daa28ec3a00eb5bdc42d49aa1a Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Thu, 25 Apr 2024 18:06:18 +0500 Subject: VKontakte: fix empty attachments array in subattachments --- protocols/VKontakte/src/misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 4f5b359f7e..61eaa2334e 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1271,7 +1271,7 @@ CMStringW CVkProto::GetAttachmentDescr(const JSONNode &jnAttachments, BBCSupport { debugLogA("CVkProto::GetAttachmentDescr"); CMStringW res; - if (!jnAttachments) { + if (!jnAttachments || jnAttachments.as_array().empty()) { debugLogA("CVkProto::GetAttachmentDescr pAttachments == nullptr"); return res; } -- cgit v1.2.3