From 96236d26667d87a9ecb09b8243b991da10908e2d Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Wed, 20 Jan 2016 17:59:41 +0000 Subject: [PATCH] Don't add MinidumpAccount if it doesn't exist Apparently this is crashing now. --- extension/extension.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extension/extension.cpp b/extension/extension.cpp index dea4c12..ef09307 100644 --- a/extension/extension.cpp +++ b/extension/extension.cpp @@ -265,7 +265,9 @@ bool UploadAndDeleteCrashDump(const char *path, char *response, int maxlen) { IWebForm *form = webternet->CreateForm(); - form->AddString("UserID", g_pSM->GetCoreConfigValue("MinidumpAccount")); + const char *minidumpAccount = g_pSM->GetCoreConfigValue("MinidumpAccount"); + if (minidumpAccount) form->AddString("UserID", minidumpAccount); + form->AddString("GameDirectory", g_pSM->GetGameFolderName()); form->AddString("ExtensionVersion", SMEXT_CONF_VERSION);