Changed to check all parameters 81/53781/1 accepted/tizen/mobile/20151209.133004 accepted/tizen/tv/20151209.133040 accepted/tizen/wearable/20151209.133123 submit/tizen/20151209.084946 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
authorYoung-Ae Kang <youngae.kang@samsung.com>
Wed, 9 Dec 2015 08:41:27 +0000 (17:41 +0900)
committerYoung-Ae Kang <youngae.kang@samsung.com>
Wed, 9 Dec 2015 08:42:14 +0000 (17:42 +0900)
Change-Id: Ib5e2d77a9988460014d3c1fb0591d0d3548b2c60

src/api/maps_address.cpp
src/api/maps_coordinates.cpp

index 921eb66f15a7de9437222d8a66e554448d524fdd..315ccabec101301552608af1677cfd2011af4bfe 100755 (executable)
@@ -414,7 +414,7 @@ EXPORT_API int maps_address_list_remove(maps_address_list_h address_list, maps_a
 
 EXPORT_API int maps_address_list_get_length(maps_address_list_h address_list, int *length)
 {
-       if (!address_list)
+       if (!address_list || !length)
                return MAPS_ERROR_INVALID_PARAMETER;
 
        *length = g_list_length((GList *)address_list) - 1;
index 39eb156cee40a42d121b8af023f1bedee8ec8515..70f4862f2dce7f5f01057b491eb799bcfdfc4fb8 100755 (executable)
@@ -244,7 +244,7 @@ EXPORT_API int maps_coordinates_list_remove(maps_coordinates_list_h coordinates_
 
 EXPORT_API int maps_coordinates_list_get_length(maps_coordinates_list_h coordinates_list, int *length)
 {
-       if (!coordinates_list)
+       if (!coordinates_list || !length)
                return MAPS_ERROR_INVALID_PARAMETER;
 
        *length = g_list_length((GList *)coordinates_list) - 1;