From 6c4222cfda84c63bd6b37dc37cc64bffdd7d2c2b Mon Sep 17 00:00:00 2001 From: bshsqa <32317749+bshsqa@users.noreply.github.com> Date: Wed, 16 Dec 2020 14:52:10 +0900 Subject: [PATCH] [NUI] Null check of Owner property of LayoutItem for Independent View. (#2416) - Current implementation, we didn't check whether the Owner Property is null or not in the Layout method. - This patch add null check of it to avoid null exception Signed-off-by: Seungho Baek --- src/Tizen.NUI/src/public/Layouting/LayoutItem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/public/Layouting/LayoutItem.cs b/src/Tizen.NUI/src/public/Layouting/LayoutItem.cs index 3133f44..97a63c1 100755 --- a/src/Tizen.NUI/src/public/Layouting/LayoutItem.cs +++ b/src/Tizen.NUI/src/public/Layouting/LayoutItem.cs @@ -242,7 +242,7 @@ namespace Tizen.NUI /// 6 public void Layout(LayoutLength left, LayoutLength top, LayoutLength right, LayoutLength bottom) { - Layout(left, top, right, bottom, Owner.ExcludeLayouting); + Layout(left, top, right, bottom, Owner?.ExcludeLayouting ?? false); } /// -- 2.7.4