In function __get_gatt_handle_by_uuid, __convert_uuid_to_uuid128 may return NULL
g_ascii_strcasecmp returns 0 if one of the strings is NULL
This will cause the function __get_gatt_handle_by_uuid to return invalid gatt handle
Change-Id: I25147f5ac350defaa71ea29b8cf75a3de9a493bd
bt_gatt_common_s *common = (bt_gatt_common_s *)l->data;
uuid128_b = __convert_uuid_to_uuid128(common->uuid);
+ if (uuid128_b == NULL)
+ continue;
if (g_ascii_strcasecmp(uuid128_a, uuid128_b) == 0) {
g_free(uuid128_b);
break;