Skip to content

Commit

Permalink
Bugfix for Install-PSResource Null pointer when package is present on…
Browse files Browse the repository at this point in the history
…ly in upstream feed in ADO (#1760)
  • Loading branch information
anamnavi authored Dec 6, 2024
1 parent 2ec92f2 commit 3e23ecb
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 (string.IsNullOrEmpty(content?.ToString()))
{
_cmdletPassedIn.WriteDebug("Response is empty");
}
Expand Down

0 comments on commit 3e23ecb

Please sign in to comment.