evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_min_set(bg, width, height);
evas_object_size_hint_max_set(bg, width, height);
- if (!elm_image_file_set(bg, buf, NULL)) {
+ if (buf == NULL || !elm_image_file_set(bg, buf, NULL)) {
_E("Failed to set image file : %s", buf);
if (!elm_image_file_set(bg, util_get_file_path(IMAGE_DIR"/home_001.png"), NULL)) {
- _E("Failed to set default image file: %s", util_get_file_path(IMAGE_DIR"/home_001.png"));
+ _E("Failed to set default image file: %s", util_get_file_path(IMAGE_DIR"/home_001.png"));
return;
}
}