Fix a null references issue that may crash wox.

This commit is contained in:
qianlifeng 2014-03-18 00:25:27 +08:00
parent 1185bd5d86
commit 9c1fba3d79

View File

@ -148,7 +148,7 @@ namespace Wox
private void lbResults_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (e.AddedItems.Count > 0)
if (e.AddedItems.Count > 0 && e.AddedItems[0] != null)
{
lbResults.ScrollIntoView(e.AddedItems[0]);
}