diff --git a/src/code/V3ServerAPICalls.cs b/src/code/V3ServerAPICalls.cs index 8f5297ecc..a72eb51f3 100644 --- a/src/code/V3ServerAPICalls.cs +++ b/src/code/V3ServerAPICalls.cs @@ -1622,9 +1622,11 @@ private HttpContent HttpRequestCallForContent(string requestUrlV3, out ErrorReco "HttpRequestCallForContentFailure", ErrorCategory.InvalidResult, this); + + return null; } - if (string.IsNullOrEmpty(content.ToString())) + if (content == null || string.IsNullOrEmpty(content.ToString())) { _cmdletPassedIn.WriteDebug("Response is empty"); }