Skip to content

Commit d4b5a19

Browse files
committed
add check for null or empty for description
1 parent e7c4d83 commit d4b5a19

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 6d5b687e240a6abdc5623d8a8e09501f3994b0d3

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ private static Win32 ExeProgram(string path)
235235
{
236236
var program = Win32Program(path);
237237
var info = FileVersionInfo.GetVersionInfo(path);
238-
program.Description = info.FileDescription;
238+
if (!string.IsNullOrEmpty(info.FileDescription))
239+
program.Description = info.FileDescription;
239240
return program;
240241
}
241242
catch (Exception e) when (e is SecurityException || e is UnauthorizedAccessException)

0 commit comments

Comments
 (0)