diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index 8e4e025..709b8ec 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
DBusMessage *reply;
char *buf = "";
+ if (session->msg == NULL)
+ return;
+
reply = dbus_message_new_method_return(session->msg);
if (transfer->filled > 0)
guint16 phone_book_size;
guint8 new_missed_calls;
+ if (session->msg == NULL)
+ return;
+
reply = dbus_message_new_method_return(session->msg);
read_return_apparam(session, &phone_book_size, &new_missed_calls);
DBusMessageIter iter, array;
int i;
+ if (session->msg == NULL)
+ return;
+
reply = dbus_message_new_method_return(session->msg);
if (transfer->filled == 0)
if (!pbapdata->path)
return g_dbus_create_error(message,
- ERROR_INF ".Forbidden", "Call Select first of all");
+ ERROR_INF ".Forbidden",
+ "Call Select first of all");
if (dbus_message_get_args(message, NULL,
DBUS_TYPE_STRING, &name,