Skip to content

Commit

Permalink
return from exception caught, and add a null check for thoroughness
Browse files Browse the repository at this point in the history
  • Loading branch information
anamnavi committed Dec 4, 2024
1 parent 5adcf9b commit 03d1cb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/code/V3ServerAPICalls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 03d1cb8

Please sign in to comment.