From: Wootak Jung Date: Mon, 23 Nov 2020 05:50:48 +0000 (+0900) Subject: [Bluetooth][Non-ACR] Fix svace issue (#2270) X-Git-Tag: accepted/tizen/unified/20210219.040944~258 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8c72a9533502bd3382ec1e1db12e57614c2a710;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Bluetooth][Non-ACR] Fix svace issue (#2270) Signed-off-by: Wootak Jung --- diff --git a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGattImpl.cs b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGattImpl.cs index 4e8f288..559a14b 100644 --- a/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGattImpl.cs +++ b/src/Tizen.Network.Bluetooth/Tizen.Network.Bluetooth/BluetoothGattImpl.cs @@ -371,7 +371,10 @@ namespace Tizen.Network.Bluetooth } BluetoothGattCharacteristic Characteristic = BluetoothGattCharacteristicImpl.CreateBluetoothGattGattCharacteristic(attributeHandle, uuid); - Characteristic.SetParent(service); + if (Characteristic != null) + { + Characteristic.SetParent(service); + } return Characteristic; } @@ -532,7 +535,10 @@ namespace Tizen.Network.Bluetooth return null; } BluetoothGattDescriptor descriptor = BluetoothGattDescriptorImpl.CreateBluetoothGattDescriptor(handle, uuid); - descriptor.SetParent(characteristic); + if (descriptor != null) + { + descriptor.SetParent(characteristic); + } return descriptor; }