Fix the JIRA issue (TREL-136)
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 11 Apr 2013 05:03:29 +0000 (14:03 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 11 Apr 2013 05:05:53 +0000 (14:05 +0900)
[Issue] TREL-136

[Problem] Bluetooth could not send file to other device

[Cause] We did not consider the exception case

[Solution] Check the exception case

Change-Id: I30c2357fec5faf503bfe30b8065155ae8a1bae76

src/ui/bt-main-view.c

index 6892397..40c2a88 100644 (file)
@@ -3598,7 +3598,7 @@ void __bt_main_parse_service(bt_ug_data *ugd, service_h service)
 
                BT_DBG("url_schem: %s", url_sheme);
 
-               if (g_strcmp0(url_sheme, "file") == 0) {
+               if (url_sheme == NULL || g_strcmp0(url_sheme, "file") == 0) {
                        /* File transfer */
                        file_path = g_filename_from_uri(file_url, NULL, NULL);
                        if (service_add_extra_data(service, "type", "file") < 0)