[NUI] Fix empty item case crash. wrong bracket conditions.
authorEverLEEst(SangHyeon Lee) <sh10233.lee@samsung.com>
Thu, 27 Apr 2023 09:39:16 +0000 (18:39 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Tue, 2 May 2023 07:43:54 +0000 (16:43 +0900)
when failed flag is true,
other condition should be ingored.

src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/GridLayouter.cs
src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/LinearLayouter.cs

index 11881d83769484ae04fcd118de53a664ecc5d194..b90d617a04b6740f05727d8db99c8d4bbd60c9ef 100755 (executable)
@@ -239,9 +239,9 @@ namespace Tizen.NUI.Components
             }
 
             while (!failed &&
-                    Source.IsHeader(firstIndex) ||
+                   (Source.IsHeader(firstIndex) ||
                     Source.IsGroupHeader(firstIndex) ||
-                    Source.IsGroupFooter(firstIndex))
+                    Source.IsGroupFooter(firstIndex)))
             {
                 if (Source.IsFooter(firstIndex)
                     || ((Source.Count - 1) <= firstIndex))
index 7a5f4fd7ae0afac681331154a7784033a2bb9d57..7504e0954e5b01a7c4f5aeb7e55dccf34521c842 100755 (executable)
@@ -227,9 +227,9 @@ namespace Tizen.NUI.Components
             }
 
             while (!failed &&
-                    Source.IsHeader(firstIndex) ||
+                   (Source.IsHeader(firstIndex) ||
                     Source.IsGroupHeader(firstIndex) ||
-                    Source.IsGroupFooter(firstIndex))
+                    Source.IsGroupFooter(firstIndex)))
             {
                 if (Source.IsFooter(firstIndex)
                     || ((Source.Count - 1) <= firstIndex))