From 78b72e6599a85f0c636d423a9deae935ac71f48c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 Sep 2017 12:32:39 +0300 Subject: crash fix --- protocols/VKontakte/src/vk_messages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/VKontakte/src') 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; -- cgit v1.2.3