From a027e824a20d4b9b911e2c409fa41663a9ba01d6 Mon Sep 17 00:00:00 2001 From: "h.sandeep" Date: Wed, 15 Mar 2017 10:06:16 +0530 Subject: [PATCH] Fix Svace Issue Fixed the Svace issue with WGID: 183099 Change-Id: I4daf39febf1d7127f2e52dd21f46a6d343eaaa4d Signed-off-by: h.sandeep --- Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs b/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs index 1329b76..8411a30 100755 --- a/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs +++ b/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs @@ -857,10 +857,9 @@ namespace Tizen.Network.Bluetooth /// Throws excetion if value is null 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); } -- 2.7.4