Check if url field is null

This commit is contained in:
Vic 2022-10-24 21:50:31 +08:00
parent 568dced4bb
commit c8dfd565e5

View file

@ -302,6 +302,10 @@ namespace Flow.Launcher.Plugin.Program.Programs
var data = parser.ReadFile(path);
var urlSection = data["InternetShortcut"];
var url = urlSection?["URL"];
if (String.IsNullOrEmpty(url))
{
return program;
}
foreach(var protocol in Main._settings.GetProtocols())
{
if(url.StartsWith(protocol))