From ead297b7b0d0b1b58a23405d32e2808b1f33c7db Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 10 Nov 2009 10:54:11 +0000 Subject: Fixed for #937 (presence enhancements): handle case where event argument is NULL git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3009 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/src/pjsua-lib/pjsua_pres.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjsip') diff --git a/pjsip/src/pjsua-lib/pjsua_pres.c b/pjsip/src/pjsua-lib/pjsua_pres.c index 80337299..fbf13352 100644 --- a/pjsip/src/pjsua-lib/pjsua_pres.c +++ b/pjsip/src/pjsua-lib/pjsua_pres.c @@ -1456,7 +1456,7 @@ static void pjsua_evsub_on_state( pjsip_evsub *sub, pjsip_event *event) buddy->term_code = 200; /* Determine whether to resubscribe automatically */ - if (event->type==PJSIP_EVENT_TSX_STATE) { + if (event && event->type==PJSIP_EVENT_TSX_STATE) { const pjsip_transaction *tsx = event->body.tsx_state.tsx; if (pjsip_method_cmp(&tsx->method, &pjsip_subscribe_method)==0) -- cgit v1.2.3