efl_ui_clock: fix use when no module is present.

T4875
This commit is contained in:
Cedric BAIL 2016-11-14 11:22:39 -08:00
parent 93b509d664
commit 9f5c37cda7
1 changed files with 2 additions and 1 deletions

View File

@ -847,7 +847,8 @@ _ticker(void *data)
if (sd->curr_time.tm_sec > 0)
{
field = sd->field_list + EFL_UI_CLOCK_TYPE_SECOND;
if (field->fmt_exist && field->visible)
if (field->fmt_exist && field->visible &&
dt_mod && dt_mod->field_value_display)
dt_mod->field_value_display(sd->mod_data, field->item_obj);
}
else