This is optional property but if it is present it must be of
proper type.
Change-Id: I0a144bc7ce0e7b55a5f8ba0f94d7608397491dfa
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
DBusMessageIter array;
char *obj;
+ /* Includes property is optional */
if (!g_dbus_proxy_get_property(proxy, "Includes", &iter))
return true;
return false;
}
- if (!parse_includes(service->proxy, service))
+ if (!parse_includes(service->proxy, service)) {
error("Failed to read \"Includes\" property of service");
+ return false;
+ }
service->attrib = gatt_db_add_service(service->app->database->db, &uuid,
primary, service->attr_cnt);