Fix svace issue
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / bluez_hal / src / bt-hal-gatt-client.c
index 56aa2d4..71571a2 100644 (file)
@@ -3925,9 +3925,15 @@ static bt_status_t __hal_gattc_get_service_info(hal_gattc_server_info_t *server_
                }
        }
 
+       if (uuid_str == NULL || gp_char_array == NULL) {
+               ERR("uuid_str and gp_char_array should be set");
+               goto done;
+       }
+
        /* Create new service */
        _gattc_create_new_service(server_info, is_primary, uuid_str, service_path, gp_char_array);
 
+done:
        g_variant_iter_free(property_iter);
        g_variant_unref(result);
        g_object_unref(properties_proxy);