Skip to content

Commit 3e23ecb

Browse files
authored
Bugfix for Install-PSResource Null pointer when package is present only in upstream feed in ADO (#1760)
1 parent 2ec92f2 commit 3e23ecb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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 (string.IsNullOrEmpty(content?.ToString()))
16281630
{
16291631
_cmdletPassedIn.WriteDebug("Response is empty");
16301632
}

0 commit comments

Comments
 (0)