efl_ui_layout: ensure that resize_obj is present before emitting signals
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Fri, 29 Mar 2019 12:25:54 +0000 (13:25 +0100)
committerJunsuChoi <jsuya.choi@samsung.com>
Tue, 2 Apr 2019 04:24:22 +0000 (13:24 +0900)
otherwise there will be warnings because of calling api on NULL objects.

Differential Revision: https://phab.enlightenment.org/D8512

src/lib/elementary/efl_ui_layout.c

index e483a99..f5251b4 100644 (file)
@@ -475,6 +475,9 @@ static void
 _flush_mirrored_state(Eo *obj)
 {
    char prefix[4], state[10], signal[100];
+   ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
+
+   if (!wd->resize_obj) return;
 
    if (efl_ui_widget_disabled_get(obj))
      snprintf(state, sizeof(state), "disabled");