]> sjero.net Git - linphone/blobdiff - coreapi/presence.c
bugfixing in lsd.
[linphone] / coreapi / presence.c
index 8d9d39474525b66299b9f22de290376699b3bf6a..c56861d9df1a5ebcd1ea4c6d4b434b44e2e89798 100644 (file)
@@ -130,7 +130,8 @@ void linphone_notify_recv(LinphoneCore *lc, SalOp *op, SalSubscribeState ss, Sal
                tmp=linphone_address_as_string(friend);
                lf->status=estatus;
                lf->subscribe_active=TRUE;
-               lc->vtable.notify_presence_recv(lc,(LinphoneFriend*)lf);
+               if (lc->vtable.notify_presence_recv)
+                       lc->vtable.notify_presence_recv(lc,(LinphoneFriend*)lf);
                ms_free(tmp);
        }else{
                ms_message("But this person is not part of our friend list, so we don't care.");