eldbus: add dbus_pending NULL check
authorThiep Ha <thiep.ha@samsung.com>
Wed, 23 Sep 2015 00:19:59 +0000 (09:19 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Wed, 23 Sep 2015 00:22:51 +0000 (09:22 +0900)
commitffbda5add5a871fdc9f9e4d0078d814240cd59ff
treec61ba690f2254e9c91e3f86b5c5446ee1863cd74
parent57d6231b3aee7e9e74b6d6e1d929d710b7ac9ef6
eldbus: add dbus_pending NULL check

Summary:
When we call dbus_connection_send_with_reply, the dbus_pending
can be NULL. In this case, the next call dbus_pending_call_set_notify
will cause application crash.
We should check if dbus_pending is NULL before calling dbus API.

@fix

Reviewers: cedric

Subscribers: englebass, cedric, seoz

Differential Revision: https://phab.enlightenment.org/D3081
src/lib/eldbus/eldbus_pending.c