jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7270a98d8cc4c088fe361012753f4189f1988d85

commit 7270a98d8cc4c088fe361012753f4189f1988d85
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Mon Aug 21 14:06:15 2017 +0900

    popup: Avoid error messages on NULL
    
    Those were spotted in ephoto (with no config, first run).
---
 src/lib/elementary/elc_popup.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/lib/elementary/elc_popup.c b/src/lib/elementary/elc_popup.c
index a5d3b782be..fd86b931ae 100644
--- a/src/lib/elementary/elc_popup.c
+++ b/src/lib/elementary/elc_popup.c
@@ -496,10 +496,12 @@ _elm_popup_elm_layout_sizing_eval(Eo *obj, Elm_Popup_Data 
*sd)
        return;
      }
 
-   edje_object_size_min_calc(elm_layout_edje_get(sd->main_layout), &minw, 
&minh);
-
-   evas_object_size_hint_min_set(obj, minw, minh);
-   evas_object_size_hint_max_set(obj, -1, -1);
+   if (sd->main_layout)
+     {
+        edje_object_size_min_calc(elm_layout_edje_get(sd->main_layout), &minw, 
&minh);
+        evas_object_size_hint_min_set(obj, minw, minh);
+        evas_object_size_hint_max_set(obj, -1, -1);
+     }
 }
 
 EOLIAN static void

-- 


Reply via email to