int interval = 0;
- app_control_get_extra_data(app_control, kAlarmAbsoluteRecurrenceTypeKey, &alarm_type);
+ ret = app_control_get_extra_data(app_control, kAlarmAbsoluteRecurrenceTypeKey, &alarm_type);
+ if (APP_CONTROL_ERROR_NONE != ret) {
+ return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Unknown error occurred.",
+ ("Getting data failed: %d (%s)", ret, get_error_message(ret)));
+ }
if (!strcmp(alarm_type, kAlarmAbsoluteReccurrenceTypeInterval)) {
ret = alarm_get_scheduled_period(id, &interval);