[NUI] Fix svace issue for wearable
authorzhouleonlei <zhouleon.lei@samsung.com>
Mon, 1 Mar 2021 06:08:42 +0000 (14:08 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 2 Mar 2021 05:10:30 +0000 (14:10 +0900)
src/Tizen.NUI.Wearable/src/internal/FishEyeLayoutManager.cs

index 073ca6d..8265df8 100755 (executable)
@@ -112,6 +112,10 @@ namespace Tizen.NUI.Wearable
             }
 
             RecycleItem prevItem = centerItem;
+            if (prevItem == null)
+            {
+                return;
+            }
 
             // Front of center item
             for (int i = FocusedIndex - 1; i > -1; i--)