edj_viewer: safety code.

+ null check
This commit is contained in:
Hermet Park 2016-08-03 19:55:58 +09:00
parent fd050aacf2
commit fb4c8b70a8
1 changed files with 6 additions and 0 deletions

View File

@ -835,6 +835,12 @@ void
view_size_get(view_data *vd, Evas_Coord *w, Evas_Coord *h)
{
if (!w || !h) return;
if (!vd)
{
*w = 0;
*h = 0;
return;
}
evas_object_geometry_get(vd->layout, NULL , NULL, w, h);