From 5a806bec455e5d345eb951076ab6ffdcb9409f8e Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Tue, 14 Jan 2025 16:53:25 +0900 Subject: [PATCH] [NUI] Handles null argument ControlState.Equals Signed-off-by: Jiyun Yang --- src/Tizen.NUI/src/public/BaseComponents/ControlState.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/public/BaseComponents/ControlState.cs b/src/Tizen.NUI/src/public/BaseComponents/ControlState.cs index 0cc46c0857d..b19f770dc8a 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ControlState.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ControlState.cs @@ -149,7 +149,13 @@ public bool Contains(ControlState state) /// [EditorBrowsable(EditorBrowsableState.Never)] - public bool Equals(ControlState other) => value.Equals(other.value); + public bool Equals(ControlState other) + { + if (other is null) + return false; + + return value.Equals(other.value); + } /// /// 9