summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
diff options
context:
space:
mode:
authorSergey Bolhovskoy <elzorfox@ya.ru>2015-10-15 17:46:39 +0000
committerSergey Bolhovskoy <elzorfox@ya.ru>2015-10-15 17:46:39 +0000
commit79ec077174f11b96462750c99fd0f49ab386bef5 (patch)
tree788544ca023d4936dbf65bc2cebc7005d7314c95 /protocols/VKontakte/src/misc.cpp
parent1b098ca45335c8132b4c9997e1485c22e51ba59f (diff)
fix for bug #1064
git-svn-id: http://svn.miranda-ng.org/main/trunk@15563 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp4
1 files changed, 4 insertions, 0 deletions
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<void> &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))