[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)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Fri, 28 Apr 2023 01:52:01 +0000 (10:52 +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))