[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 11881d8..b90d617 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 7a5f4fd..7504e09 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))