{
if (!maps_condition_check_maps_feature())
return MAPS_ERROR_NOT_SUPPORTED;
- if (!maps || !maps_provider)
+ if (!maps || !maps_provider || strlen(maps_provider) == 0)
return MAPS_ERROR_INVALID_PARAMETER;
if (!maps_condition_check_privilege()) {
//LCOV_EXCL_START
return error;
}
+//LCOV_EXCL_START
EXPORT_API int maps_service_create_without_user_consent(const char *maps_provider, maps_service_h *maps)
{
if (!maps_condition_check_maps_feature())
return MAPS_ERROR_NOT_SUPPORTED;
- if (!maps || !maps_provider)
+ if (!maps || !maps_provider || strlen(maps_provider) == 0)
return MAPS_ERROR_INVALID_PARAMETER;
if (!maps_condition_check_privilege()) {
MAPS_LOGD("ERROR: privilege is not included");
error = maps_service_create(maps_provider_without_uc, maps);
return error;
}
-
+//LCOV_EXCL_STOP
EXPORT_API int maps_service_destroy(maps_service_h maps)
{