From 008812dfaa2d0b47868c7db25bb53a59c9a17268 Mon Sep 17 00:00:00 2001 From: "EverLEEst(SangHyeon Lee)" Date: Fri, 17 Mar 2023 14:57:37 +0900 Subject: [PATCH] [NUI] fix svace issue. check Selected item existance. --- .../Controls/RecyclerView/Item/RecyclerViewItem.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.cs b/src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.cs index a9fa9c6..a31686e 100755 --- a/src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.cs +++ b/src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.cs @@ -68,14 +68,17 @@ namespace Tizen.NUI.Components else if (collectionView.SelectionMode is ItemSelectionMode.Multiple) { var selectedList = collectionView.SelectedItems; - bool contains = selectedList.Contains(context); - if (newSelected && !contains) + if (selectedList != null) { - selectedList.Add(context); - } - else if (!newSelected && contains) - { - selectedList.Remove(context); + bool contains = selectedList.Contains(context); + if (newSelected && !contains) + { + selectedList.Add(context); + } + else if (!newSelected && contains) + { + selectedList.Remove(context); + } } } } -- 2.7.4