Skip to content

Commit c8dfd56

Browse files
Check if url field is null
1 parent 568dced commit c8dfd56

File tree

1 file changed

+4
-0
lines changed
  • Plugins/Flow.Launcher.Plugin.Program/Programs

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,10 @@ private static Win32 UrlProgram(string path)
302302
var data = parser.ReadFile(path);
303303
var urlSection = data["InternetShortcut"];
304304
var url = urlSection?["URL"];
305+
if (String.IsNullOrEmpty(url))
306+
{
307+
return program;
308+
}
305309
foreach(var protocol in Main._settings.GetProtocols())
306310
{
307311
if(url.StartsWith(protocol))

0 commit comments

Comments
 (0)