From 2ba155944abd5f45b5168903dd5f2a153a88db0c Mon Sep 17 00:00:00 2001 From: Vic <10308169+VictoriousRaptor@users.noreply.github.com> Date: Mon, 24 Oct 2022 14:00:02 +0800 Subject: [PATCH] bugfix --- .../Flow.Launcher.Plugin.Program/Programs/Win32.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs index a86c454be..f6dddb7ba 100644 --- a/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs +++ b/Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs @@ -304,13 +304,16 @@ namespace Flow.Launcher.Plugin.Program.Programs if (urlSection != null) { var url = urlSection["URL"]; - foreach(var protocol in Main._settings.GetProtocols()) + if(url != null) { - if(url.StartsWith(protocol)) + foreach(var protocol in Main._settings.GetProtocols()) { - program.LnkResolvedPath = url; - program.Valid = true; - break; + if(url.StartsWith(protocol)) + { + program.LnkResolvedPath = url; + program.Valid = true; + break; + } } } }