Efl.Canvas.Vg.Object: Prevent null pointer access

add null check
This commit is contained in:
junsu choi 2020-06-03 15:58:00 +09:00
parent 97f4f7127a
commit 0b4f42fab6
1 changed files with 2 additions and 1 deletions

View File

@ -296,7 +296,8 @@ _efl_canvas_vg_object_efl_file_load(Eo *eo_obj, Efl_Canvas_Vg_Object_Data *pd)
// NOTE: Update object's viewbox. In this case, there is no need to update
// the root of tree. That's why We don't use viewbox_set.
pd->viewbox.rect = pd->vg_entry->vfd->view_box;
if (pd->vg_entry && pd->vg_entry->vfd)
pd->viewbox.rect = pd->vg_entry->vfd->view_box;
evas_object_change(eo_obj, obj);
pd->changed = EINA_TRUE;