summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-25 14:46:34 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-25 14:46:58 -0400
commit880296bb7d93ce74153978f25c4bccbed61a340c (patch)
tree71fb7a3ed0644d1702f1db3f6b65a41228774227 /src/bin
parent485d2e37d8af406fa99b75bf3372bb0d59a07621 (diff)
elm_test/plug: fix error handling
Summary: if plug connection fails, a notification can't always be created because there may be no object passed to this function to create a notify object on @fix Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl_widgets Differential Revision: https://phab.enlightenment.org/D9400
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/elementary/test_win_plug.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/elementary/test_win_plug.c b/src/bin/elementary/test_win_plug.c
index 615e6fa8d5..b94f324c10 100644
--- a/src/bin/elementary/test_win_plug.c
+++ b/src/bin/elementary/test_win_plug.c
@@ -196,7 +196,10 @@ test_win_plug(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UN
196 evas_object_event_callback_add(plug, EVAS_CALLBACK_DEL, _timer_del, NULL); 196 evas_object_event_callback_add(plug, EVAS_CALLBACK_DEL, _timer_del, NULL);
197 if (!elm_plug_connect(plug, "ello", 0, EINA_FALSE)) 197 if (!elm_plug_connect(plug, "ello", 0, EINA_FALSE))
198 { 198 {
199 _notify_error(data, "Unable to connect to the Window Socket!"); 199 if (data)
200 _notify_error(data, "Unable to connect to the Window Socket!");
201 else
202 fprintf(stderr, "Unable to connect to the Window Socket!\n");
200 evas_object_del(win); 203 evas_object_del(win);
201 return; 204 return;
202 } 205 }