[Bluetooth-Frwk] CSharp TCT Fixes over Latest Tizen branch
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-gatt-server.c
index 89dca76..629a706 100644 (file)
@@ -1813,8 +1813,9 @@ static void __bt_hal_unregister_application_cb(GObject *object, GAsyncResult *re
        char *app_path = (char*)user_data;
        INFO("UnregisterApplication is completed app [%s]", app_path);
        GError *error = NULL;
-       GVariant *result;
+       GVariant *result = NULL;
 
+       if (manager_gproxy)
        result = g_dbus_proxy_call_finish(manager_gproxy, res, &error);
 
        if (result == NULL) {