Skip to content

Commit 0e97b46

Browse files
authored
Update src/Neo.CLI/CLI/MainService.Plugins.cs
1 parent dc8d25c commit 0e97b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Neo.CLI/CLI/MainService.Plugins.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private static async Task<Stream> DownloadPluginAsync(string pluginName, Version
9494
{
9595
// If the corresponding version of the plugin is not found, get the latest version
9696
jsonRelease = json.AsArray()
97-
.OrderByDescending(s => Version.Parse(s["tag_name"]!.GetValue<string>().TrimStart('v')))
97+
.OrderByDescending(s => Version.Parse(s["tag_name"]!.GetValue<string>()?.TrimStart('v')))
9898
.FirstOrDefault();
9999

100100
if (jsonRelease != null)

0 commit comments

Comments
 (0)