fix a null pointer issue

This commit is contained in:
qianlifeng
2015-11-08 19:31:44 +08:00
parent c0216e0800
commit 60f06f97fa
2 changed files with 1 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ namespace Wox.Plugin.Program.ProgramSources
using (var key = root.OpenSubKey(item))
{
string path = key.GetValue("") as string;
if (path == null) continue;
if (string.IsNullOrEmpty(path)) continue;
// fix path like this ""\"C:\\folder\\executable.exe\"""
const int begin = 0;