diff options
author | Paul DiPietro <pauldipietro@users.noreply.github.com> | 2016-08-24 19:55:15 -0500 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-08-25 01:55:15 +0100 |
commit | 96c194cb12cc119bd0f2baaaaab418a24fd00d94 (patch) | |
tree | 5effec314c1c4747c4866c5ae0c0ab90f2b9317d /Xamarin.Forms.Platform.WinRT | |
parent | cb2bcdb84c45dad15cf470b798069f2ab301bf19 (diff) | |
download | xamarin-forms-96c194cb12cc119bd0f2baaaaab418a24fd00d94.tar.gz xamarin-forms-96c194cb12cc119bd0f2baaaaab418a24fd00d94.tar.bz2 xamarin-forms-96c194cb12cc119bd0f2baaaaab418a24fd00d94.zip |
Fix regression by adding null check in Windows ListView selection (#314)
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r-- | Xamarin.Forms.Platform.WinRT/ListViewRenderer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/ListViewRenderer.cs b/Xamarin.Forms.Platform.WinRT/ListViewRenderer.cs index 2cd8562c..d65f7f6f 100644 --- a/Xamarin.Forms.Platform.WinRT/ListViewRenderer.cs +++ b/Xamarin.Forms.Platform.WinRT/ListViewRenderer.cs @@ -538,7 +538,7 @@ namespace Xamarin.Forms.Platform.WinRT // This is used for respecting ListView selection changes via keyboard, as the SelectedItem // value is otherwise not set. - if (Element.SelectedItem != List.SelectedItem) + if (Element.SelectedItem != null && Element.SelectedItem != List.SelectedItem) { ((IElementController)Element).SetValueFromRenderer(ListView.SelectedItemProperty, List.SelectedItem); } |