From: guowei.wang Date: Thu, 8 Dec 2022 13:56:37 +0000 (+0800) Subject: [NUI] Fix svace issue (DFDF221207-00724). X-Git-Tag: accepted/tizen/unified/20231205.024657~549 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7c0e93850d04d40aa37d993b5849c943b535c7d;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix svace issue (DFDF221207-00724). --- diff --git a/src/Tizen.NUI/src/public/Window/Window.cs b/src/Tizen.NUI/src/public/Window/Window.cs index c39da9b..796b7b9 100755 --- a/src/Tizen.NUI/src/public/Window/Window.cs +++ b/src/Tizen.NUI/src/public/Window/Window.cs @@ -552,7 +552,7 @@ namespace Tizen.NUI { Position2D position = GetPosition(); Size2D size = GetSize(); - Rectangle ret = new Rectangle(position.X, position.Y, size.Width, size.Height); + Rectangle ret = new Rectangle(position?.X ?? 0, position?.Y ?? 0, size?.Width ?? 0, size?.Height ?? 0); position.Dispose(); return ret; }