diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-02-15 23:12:24 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-02-15 23:12:24 +0500 |
commit | 69dbaabe8bea3d7a3f415daa4dd15cbe689d27c2 (patch) | |
tree | c688ab3d2b267036653beb3b6d54e3437909a792 /protocols/VKontakte/src/misc.cpp | |
parent | ad212509efd1de495c7a4ad08504bc062bfe8e2a (diff) |
VKontakte: crash fix ( issue #716)
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index d57f711f8e..47ee7630b4 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -258,6 +258,9 @@ JSONNode& CVkProto::CheckJsonResponse(AsyncHttpRequest *pReq, NETLIBHTTPREQUEST bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, const JSONNode &jnNode)
{
debugLogA("CVkProto::CheckJsonResult");
+ if (!pReq)
+ return false;
+
if (!jnNode) {
pReq->m_iErrorCode = VKERR_NO_JSONNODE;
return false;
|