Fix a crash issue.

This commit is contained in:
qianlifeng 2014-12-31 12:42:49 +08:00
parent 50f6044a2f
commit 61dc148d34

View File

@ -98,7 +98,7 @@ namespace Wox.ImageLoader
{
img = new BitmapImage(new Uri(path));
}
else if (selfExts.Contains(ext))
else if (selfExts.Contains(ext) && File.Exists(path))
{
img = GetIcon(path);
}