diff --git a/src/Tizen.NUI/src/public/BaseComponents/ControlState.cs b/src/Tizen.NUI/src/public/BaseComponents/ControlState.cs index 2a4fd2b3cac..199784c9e0c 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ControlState.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ControlState.cs @@ -115,11 +115,6 @@ private ControlState(string name) : this(ControlStateUtility.Register(name)) /// 9 public static ControlState Create(string name) { - if (name == null) - throw new ArgumentNullException(nameof(name)); - if (string.IsNullOrWhiteSpace(name)) - throw new ArgumentException($"{nameof(name)} cannot be whitespace.", nameof(name)); - return new ControlState(name); } @@ -150,7 +145,8 @@ public static ControlState Create(params ControlState[] states) /// 9 public bool Contains(ControlState state) { - if (state is null) return false; + if (state is null) + throw new ArgumentNullException(nameof(state)); return (bitFlags & state.bitFlags) == state.bitFlags; }