From 79ec077174f11b96462750c99fd0f49ab386bef5 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Thu, 15 Oct 2015 17:46:39 +0000 Subject: fix for bug #1064 git-svn-id: http://svn.miranda-ng.org/main/trunk@15563 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/misc.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'protocols') diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index dcdfd848fe..28b44fcd01 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -218,6 +218,10 @@ bool CVkProto::CheckMid(LIST &lList, int guid) JSONNode& CVkProto::CheckJsonResponse(AsyncHttpRequest *pReq, NETLIBHTTPREQUEST *reply, JSONNode &root) { debugLogA("CVkProto::CheckJsonResponse"); + + if (!reply || !reply->pData) + return nullNode; + root = JSONNode::parse(reply->pData); if (!CheckJsonResult(pReq, root)) -- cgit v1.2.3