From 095d34bc90c8be3e35066d0a726d0e819b7eb18f Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 5 Sep 2014 12:20:54 -0400 Subject: [PATCH] modules/notification: e_comp_object_util_zone_get Can return NULL so we should check the return before trying to use it. Should fix Phab T1618 Signed-off-by: Chris Michael --- src/modules/notification/e_mod_popup.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/modules/notification/e_mod_popup.c b/src/modules/notification/e_mod_popup.c index eadb842f6..b0b9cbd15 100644 --- a/src/modules/notification/e_mod_popup.c +++ b/src/modules/notification/e_mod_popup.c @@ -443,9 +443,11 @@ _notification_popup_refresh(Popup_Data *popup) /* Compute the new size of the popup */ edje_object_calc_force(popup->theme); edje_object_size_min_calc(popup->theme, &w, &h); - zone = e_comp_object_util_zone_get(popup->win); - w = MIN(w, zone->w / 2); - h = MIN(h, zone->h / 2); + if ((zone = e_comp_object_util_zone_get(popup->win))) + { + w = MIN(w, zone->w / 2); + h = MIN(h, zone->h / 2); + } evas_object_resize(popup->win, w, h); }