efl_promise: check NULL before calling.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 19 Sep 2016 04:16:37 +0000 (01:16 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 19 Sep 2016 04:18:14 +0000 (01:18 -0300)
commitf42e6494760a63ad4215e486d460d33cf2c58a7b
treea22eeea2ca1f11bb0a0810912986559fad962de5
parent76c3726ef0709b88f17ca1e1f668345227b3b9c4
efl_promise: check NULL before calling.

we do not check any of success, failure or progress, so we must check
if they are valid before calling.

This fixed a bug in efl_net_dialer_tcp where it uses a null failure
cb and was SEGV.
src/lib/ecore/efl_promise.c