summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2024-04-25 18:06:18 +0500
committerElzorFox <elzorfox@ya.ru>2024-04-25 18:07:21 +0500
commit7daaae893a1e65daa28ec3a00eb5bdc42d49aa1a (patch)
treea2a95301319282f7b6c8cd01df0bf538a5fcf1a9 /protocols/VKontakte/src/misc.cpp
parent1e222c1712e60244624c4725abb823acdbd6a625 (diff)
VKontakte: fix empty attachments array in subattachments
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}