Change-Id: Ib5e2d77a9988460014d3c1fb0591d0d3548b2c60
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;
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;