Skip to content

Commit c2e8147

Browse files
authored
Merge pull request #547 from taooceros/FixEmptyPathException
Check Empty image path to avoid exception
2 parents 99b35a3 + 12b2d65 commit c2e8147

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ private BitmapImage ImageFromPath(string path)
565565
}
566566
else
567567
{
568-
ProgramLogger.LogException($"|UWP|ImageFromPath|{path}" +
568+
ProgramLogger.LogException($"|UWP|ImageFromPath|{(string.IsNullOrEmpty(path) ? "Not Avaliable" : path)}" +
569569
$"|Unable to get logo for {UserModelId} from {path} and" +
570570
$" located in {Package.Location}", new FileNotFoundException());
571571
return new BitmapImage(new Uri(Constant.MissingImgIcon));

0 commit comments

Comments
 (0)