Fix Svace Issue 75/118975/2 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen/common/20170316.161932 accepted/tizen/ivi/20170316.222625 accepted/tizen/mobile/20170316.222547 accepted/tizen/tv/20170316.222612 accepted/tizen/unified/20170316.222638 submit/tizen/20170316.101641
authorh.sandeep <h.sandeep@samsung.com>
Wed, 15 Mar 2017 04:36:16 +0000 (10:06 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 16 Mar 2017 03:50:35 +0000 (12:50 +0900)
Fixed the Svace issue with WGID: 183099

Change-Id: I4daf39febf1d7127f2e52dd21f46a6d343eaaa4d
Signed-off-by: h.sandeep <h.sandeep@samsung.com>
Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGatt.cs

index 1329b76..8411a30 100755 (executable)
@@ -857,10 +857,9 @@ namespace Tizen.Network.Bluetooth
         /// <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);
         }