[Bluetooth] Fixed uninitialized variable
authorJunghyuk Park <junghyuk.park@samsung.com>
Mon, 26 Aug 2013 10:08:09 +0000 (19:08 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Mon, 26 Aug 2013 11:56:44 +0000 (11:56 +0000)
Change-Id: I984395012075beecf9fe4473df4f5e5907cef6fb

tct-bluetooth-tizen-tests/bluetooth/BluetoothAdapter_registerRFCOMMServiceByUUID_onerror.html

index 23c38482d92e001d41157274d48fff5052788534..710c838d17efd312516fdcfcf6778632bfc6ba65 100755 (executable)
@@ -57,7 +57,9 @@ var t = async_test("BluetoothAdapter_registerRFCOMMServiceByUUID_onerror", {time
 
 t.step(function () {
     add_result_callback(function (res) {
-        serviceHandler.unregister();
+        if (serviceHandler) {
+            serviceHandler.unregister();
+        }
     });
 
     chatServiceSuccessCallback = t.step_func(function (handler) {