Revise to return NOT_FOUND error when any map provider wasn't found 50/162550/1 accepted/tizen/unified/20171205.060635 submit/tizen/20171204.082943
authorchanywa <cbible.kim@samsung.com>
Fri, 1 Dec 2017 04:50:22 +0000 (13:50 +0900)
committerSeechan Kim <cbible.kim@samsung.com>
Mon, 4 Dec 2017 07:31:57 +0000 (07:31 +0000)
Change-Id: Ie2abeefba1d3a10d505f19bfd5b5d245c77cb00c

capi-maps-service.changes
packaging/capi-maps-service.spec
src/api/maps_service.cpp

index e1c402d..9bfd8cb 100644 (file)
@@ -1,3 +1,8 @@
+[Version]   capi-maps-service_0.6.18
+[Date]      04 Dec 2017
+[Title]     Revise to return NOT_FOUND error when any map provider wasn't found
+[Developer] Seechan Kim <cbible.kim@samsung.com>
+
 [Version]   capi-maps-service_0.6.17
 [Date]      18 Aug 2017
 [Title]     Check if handles of session commands has been created successfully.
index 1858031..1fd23d8 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-maps-service
 Summary:    Tizen Maps Service API
-Version:    0.6.17
+Version:    0.6.18
 Release:    1
 Group:      Location/API
 License:    Apache-2.0
index 2a13467..e3ea040 100644 (file)
@@ -64,6 +64,9 @@ EXPORT_API int maps_service_foreach_provider(maps_service_provider_info_cb callb
 
        /* Send obtained provider info to the user */
        const int total = int(v.size());
+       if (total <= 0)
+               return MAPS_ERROR_NOT_FOUND;
+
        for (int i = 0; i < total; i++) {
                /* Get a plugin info handle from the array */
                /* and send a callback with provider info to the user */