diff options
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 4 |
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))
|