Skip to content

Commit 615558a

Browse files
committed
Code can still be null at this point
1 parent b895d04 commit 615558a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bandwidth.Iris/Client.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ private async Task CheckResponse(HttpResponseMessage response)
430430
description = error.Element("Description");
431431
}
432432
}
433-
if (description != null && !string.IsNullOrEmpty(code.Value) && code.Value != "0")
433+
if (code != null && description != null && !string.IsNullOrEmpty(code.Value) && code.Value != "0")
434434
{
435435
throw new BandwidthIrisException(code.Value, description.Value, response.StatusCode, doc);
436436
}

0 commit comments

Comments
 (0)