eldbus_pending_dispatch(pending, error_msg);
return NULL;
}
+ if (!pending->dbus_pending)
+ {
+ error_msg = eldbus_message_error_new(msg, "org.enlightenment.DBus.Error",
+ "dbus_pending is NULL.");
+ eldbus_pending_dispatch(pending, error_msg);
+ return NULL;
+ }
if (dbus_pending_call_set_notify(pending->dbus_pending, cb_pending, pending, NULL))
return pending;
if (msg) eldbus_message_unref(msg);
eldbus_message_unref(pending->msg_sent);
- dbus_pending_call_unref(pending->dbus_pending);
+ if (pending->dbus_pending)
+ dbus_pending_call_unref(pending->dbus_pending);
pending->cb = NULL;
pending->dbus_pending = NULL;