From 509729f2a8f9712c1d24b0b59ee9e315bfc908e0 Mon Sep 17 00:00:00 2001 From: aunsane Date: Tue, 21 Mar 2017 22:53:53 +0300 Subject: Tox: fixed #772 --- protocols/Tox/src/tox_bootstrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/Tox/src/tox_bootstrap.cpp b/protocols/Tox/src/tox_bootstrap.cpp index 167cad3a14..cc0801da32 100644 --- a/protocols/Tox/src/tox_bootstrap.cpp +++ b/protocols/Tox/src/tox_bootstrap.cpp @@ -136,7 +136,7 @@ void CToxProto::UpdateNodes() { HttpRequest request(REQUEST_GET, "https://nodes.tox.chat/json"); NLHR_PTR response(request.Send(m_hNetlibUser)); - if (response->resultCode != HTTP_CODE_OK || !response->pData) + if (!response || response->resultCode != HTTP_CODE_OK || !response->pData) { debugLogA(__FUNCTION__": failed to dowload tox.json"); return; -- cgit v1.2.3