summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-07 12:32:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-07 12:32:39 +0300
commit78b72e6599a85f0c636d423a9deae935ac71f48c (patch)
tree0db6548f9bb467af4821e39f04bed6ad93803a69 /protocols
parentd8beb3088e4394614f48636416cc363227194a24 (diff)
crash fix
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_messages.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_messages.cpp b/protocols/VKontakte/src/vk_messages.cpp
index 87ab49a0b5..9d4acbabad 100644
--- a/protocols/VKontakte/src/vk_messages.cpp
+++ b/protocols/VKontakte/src/vk_messages.cpp
@@ -391,7 +391,7 @@ void CVkProto::OnReceiveDlgs(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
break;
int numUnread = (*it)["unread"].as_int();
const JSONNode &jnDlg = (*it)["message"];
- if (jnDlg == nullptr)
+ if (!jnDlg)
break;
int uid = 0;