Skip to content

Commit f89a1f2

Browse files
Erik BylundMikkel Sørensen
authored andcommitted
Fix null code
1 parent 4a499ac commit f89a1f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Client/LootLockerServerRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public override string ToString()
142142
string prettyError = $"LootLocker Error: \"{message}\"";
143143

144144
// Look for intermittent, non user errors
145-
if (code.StartsWith("HTTP5"))
145+
if (!string.IsNullOrEmpty(code) && code.StartsWith("HTTP5"))
146146
{
147147
prettyError +=
148148
$"\nTry again later. If the issue persists, please contact LootLocker support and provide the following error details:\n trace ID - \"{trace_id}\",\n request ID - \"{request_id}\",\n message - \"{message}\".";

0 commit comments

Comments
 (0)