Fixed the Svace issue with WGID: 183099
Change-Id: I4daf39febf1d7127f2e52dd21f46a6d343eaaa4d
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
/// <exception cref="InvalidOperationException">Throws excetion if value is null</exception>
public void SetValue(string value)
{
-/* Fix svace issue: 183099 (UNREACHABLE_CODE)
- if (value.Equals(null))
+ if (string.IsNullOrEmpty(value))
GattUtil.ThrowForError((int)BluetoothError.InvalidParameter, "value should not be null");
-*/
+
byte[] val = Encoding.UTF8.GetBytes(value);
Impl.SetValue(val);
}