Skip to content

Commit a4111ae

Browse files
authored
Merge pull request #3306 from Jack251970/install_unknown_null
Fix null reference exception when checking source
2 parents bfdf565 + 889f4cb commit a4111ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,10 @@ private bool InstallSourceKnown(string url)
593593
var constructedUrlPart = string.Format("{0}/{1}/", acceptedSource, author);
594594

595595
return url.StartsWith(acceptedSource) &&
596-
Context.API.GetAllPlugins().Any(x => x.Metadata.Website.StartsWith(constructedUrlPart));
596+
Context.API.GetAllPlugins().Any(x =>
597+
!string.IsNullOrEmpty(x.Metadata.Website) &&
598+
x.Metadata.Website.StartsWith(constructedUrlPart)
599+
);
597600
}
598601

599602
internal async ValueTask<List<Result>> RequestInstallOrUpdateAsync(string search, CancellationToken token,

0 commit comments

Comments
 (0)