[NUI] Modify svace issues for NUI and wearable (#2600)
authorzhouleonlei <56956725+zhouleonlei@users.noreply.github.com>
Tue, 2 Feb 2021 09:08:00 +0000 (17:08 +0800)
committerGitHub <noreply@github.com>
Tue, 2 Feb 2021 09:08:00 +0000 (18:08 +0900)
src/Tizen.NUI.Wearable/src/internal/FishEyeLayoutManager.cs
src/Tizen.NUI/src/public/Theme/Theme.cs [changed mode: 0644->0755]

index 76e12a8..3d65eb6 100755 (executable)
@@ -96,8 +96,11 @@ namespace Tizen.NUI.Wearable
             {
                 FocusedIndex = Math.Max(0, FocusedIndex - 1);
                 centerItem = Container.Children[FocusedIndex] as RecycleItem;
-                centerItem.Position = new Position(0.0f, Math.Abs(StepSize * (centerItem.DataIndex)));
-                centerItem.Scale = new Vector3(1.0f, 1.0f, 1.0f);
+                if (centerItem != null)
+                {
+                    centerItem.Position = new Position(0.0f, Math.Abs(StepSize * (centerItem.DataIndex)));
+                    centerItem.Scale = new Vector3(1.0f, 1.0f, 1.0f);
+                }
             }
             else
             {
old mode 100644 (file)
new mode 100755 (executable)
index ab48b4e..ed077b6
@@ -250,7 +250,7 @@ namespace Tizen.NUI
                 }
                 else
                 {
-                    map[item.Key] = theme.GetStyle(item.Key).Clone();
+                    map[item.Key] = theme.GetStyle(item.Key)?.Clone();
                 }
             }
         }