summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_contacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_contacts.cpp')
-rw-r--r--protocols/Steam/src/steam_contacts.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp
index 0d8cfb5472..630241dcd7 100644
--- a/protocols/Steam/src/steam_contacts.cpp
+++ b/protocols/Steam/src/steam_contacts.cpp
@@ -182,6 +182,9 @@ MCONTACT CSteamProto::AddContact(const char *steamId, bool isTemporary)
void CSteamProto::OnGotFriendList(const NETLIBHTTPREQUEST *response, void *arg)
{
+ if (response == NULL)
+ return;
+
JSONNODE *root = json_parse(response->pData), *node, *child;
if (root == NULL)
@@ -246,6 +249,9 @@ void CSteamProto::OnGotFriendList(const NETLIBHTTPREQUEST *response, void *arg)
void CSteamProto::OnGotBlockList(const NETLIBHTTPREQUEST *response, void *arg)
{
+ if (response == NULL)
+ return;
+
JSONNODE *root = json_parse(response->pData), *node, *child;
if (root == NULL)
@@ -287,6 +293,9 @@ void CSteamProto::OnGotBlockList(const NETLIBHTTPREQUEST *response, void *arg)
void CSteamProto::OnGotUserSummaries(const NETLIBHTTPREQUEST *response, void *arg)
{
+ if (response == NULL)
+ return;
+
JSONNODE *root = json_parse(response->pData), *node, *item;
node = json_get(root, "players");