[Bluetooth] Fix for returned BluetoothGATTService object.
authorTomasz Marciniak <t.marciniak@samsung.com>
Thu, 6 Aug 2015 11:18:37 +0000 (13:18 +0200)
committerTomasz Marciniak <t.marciniak@samsung.com>
Thu, 6 Aug 2015 11:18:37 +0000 (13:18 +0200)
[Verification] Code compiles.
Object is correctly created.

Change-Id: Iaab2ee5bade9c6a0e91870996b3e454591eae27e
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
src/bluetooth/bluetooth_api.js

index 0e6c0a4..6f90376 100755 (executable)
@@ -685,7 +685,7 @@ BluetoothLEDevice.prototype.getService = function() {
     if (native.isFailure(result)) {
         throw native.getErrorObject(result);
     } else {
-        return BluetoothGATTService(native.getResultObject(result));
+        return new BluetoothGATTService(native.getResultObject(result));
     }
 };