Fixed: Null pointer error

--HG--
branch : develop
This commit is contained in:
Nimetu 2017-09-02 23:53:06 +03:00
parent 9dce8df546
commit 64c90c4fdc

View file

@ -689,7 +689,7 @@ namespace NLGUI
char *ch;
std::string contentType;
res = curl_easy_getinfo(_CurlWWW->Request, CURLINFO_CONTENT_TYPE, &ch);
if (res == CURLE_OK)
if (res == CURLE_OK && ch != NULL)
{
contentType = ch;
}