From 9c1fba3d79ac873c6e66f7b31781fadeb86c78c9 Mon Sep 17 00:00:00 2001 From: qianlifeng Date: Tue, 18 Mar 2014 00:25:27 +0800 Subject: [PATCH] Fix a null references issue that may crash wox. --- Wox/ResultPanel.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wox/ResultPanel.xaml.cs b/Wox/ResultPanel.xaml.cs index 273e003d0..af601c988 100644 --- a/Wox/ResultPanel.xaml.cs +++ b/Wox/ResultPanel.xaml.cs @@ -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]); }