Skip to content

Commit 09108e9

Browse files
Fix NRE from destination being null
1 parent 0f57a84 commit 09108e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LibraryManager/Json/LibraryStateToFileConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public ILibraryInstallationState ConvertToLibraryInstallationState(LibraryInstal
5757
[SuppressMessage("Globalization", "CA1307:Specify StringComparison for clarity", Justification = "Not available on net481, not needed here (caseless)")]
5858
private string ExpandDestination(string destination, string name, string version)
5959
{
60-
if (!destination.Contains("["))
60+
if (destination is null || !destination.Contains("["))
6161
{
6262
return destination;
6363
}

0 commit comments

Comments
 (0)