Skip to content

Commit 2ba1559

Browse files
bugfix
1 parent 6f46504 commit 2ba1559

File tree

1 file changed

+8
-5
lines changed
  • Plugins/Flow.Launcher.Plugin.Program/Programs

1 file changed

+8
-5
lines changed

Plugins/Flow.Launcher.Plugin.Program/Programs/Win32.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,13 +304,16 @@ private static Win32 UrlProgram(string path)
304304
if (urlSection != null)
305305
{
306306
var url = urlSection["URL"];
307-
foreach(var protocol in Main._settings.GetProtocols())
307+
if(url != null)
308308
{
309-
if(url.StartsWith(protocol))
309+
foreach(var protocol in Main._settings.GetProtocols())
310310
{
311-
program.LnkResolvedPath = url;
312-
program.Valid = true;
313-
break;
311+
if(url.StartsWith(protocol))
312+
{
313+
program.LnkResolvedPath = url;
314+
program.Valid = true;
315+
break;
316+
}
314317
}
315318
}
316319
}

0 commit comments

Comments
 (0)