Skip to content

Commit 03d1cb8

Browse files
committed
return from exception caught, and add a null check for thoroughness
1 parent 5adcf9b commit 03d1cb8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/code/V3ServerAPICalls.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1622,9 +1622,11 @@ private HttpContent HttpRequestCallForContent(string requestUrlV3, out ErrorReco
16221622
"HttpRequestCallForContentFailure",
16231623
ErrorCategory.InvalidResult,
16241624
this);
1625+
1626+
return null;
16251627
}
16261628

1627-
if (string.IsNullOrEmpty(content.ToString()))
1629+
if (content == null || string.IsNullOrEmpty(content.ToString()))
16281630
{
16291631
_cmdletPassedIn.WriteDebug("Response is empty");
16301632
}

0 commit comments

Comments
 (0)