Fix svace issue 89/89289/1 accepted/tizen/common/20160923.160946 accepted/tizen/ivi/20160927.020214 accepted/tizen/mobile/20160927.020112 accepted/tizen/tv/20160927.020150 accepted/tizen/wearable/20160927.020137 submit/tizen/20160923.081806
authorDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 23 Sep 2016 04:40:03 +0000 (13:40 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 23 Sep 2016 04:40:03 +0000 (13:40 +0900)
Change-Id: I4d78797681fd369272c689cb464fe006011d0870
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
bt-service/bt-service-obex-agent.c

index b88d987..cdee90c 100644 (file)
@@ -494,6 +494,9 @@ gboolean _bt_obex_setup(const char *path)
                BT_ERR("Error while registering object");
 
        new_conn_node = g_dbus_node_info_new_for_xml(obex_service_agent_xml2, NULL);
+       if (new_conn_node == NULL)
+               return FALSE;
+
        info->obex_agent_id = g_dbus_connection_register_object(conn, info->path,
                                                new_conn_node->interfaces[0],
                                                &method_table,