[NUI] Fix layout null crash issue
authorhuiyu.eun <huiyu.eun@samsung.com>
Thu, 25 Mar 2021 05:31:41 +0000 (14:31 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Thu, 25 Mar 2021 05:26:48 +0000 (14:26 +0900)
need to check 'value'

Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/View.cs

index f26a87b..e6243cc 100755 (executable)
@@ -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();