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; + } } } }