From c8dfd565e52b2badfd6d325c7a065a4395620082 Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Mon, 24 Oct 2022 21:50:31 +0800 Subject: [PATCH] Check if url field is null --- Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index 3e32502ed..d66be513b 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -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))