From 41eab62a5b5fb34613fbf97b6b187c015014f364 Mon Sep 17 00:00:00 2001 From: "huiyu.eun" Date: Thu, 25 Mar 2021 14:31:41 +0900 Subject: [PATCH] [NUI] Fix layout null crash issue need to check 'value' Signed-off-by: huiyu.eun --- src/Tizen.NUI/src/public/BaseComponents/View.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index f26a87b..e6243cc 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -2180,7 +2180,7 @@ namespace Tizen.NUI.BaseComponents value.Padding = Padding; // If Layout is a LayoutItem then it could be a View that handles it's own padding. // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths. - if (typeof(LayoutGroup).IsAssignableFrom(Layout.GetType())) // If a Layout container of some kind. + if (typeof(LayoutGroup).IsAssignableFrom(value.GetType())) // If a Layout container of some kind. { SetValue(PaddingProperty, new Extents(0, 0, 0, 0)); NotifyPropertyChanged(); -- 2.7.4