summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-11-10 10:54:11 +0000
committerBenny Prijono <bennylp@teluu.com>2009-11-10 10:54:11 +0000
commitead297b7b0d0b1b58a23405d32e2808b1f33c7db (patch)
tree4ec8fb802451271a65e5add4a9da0a94c92dce04
parent0ed20d4d36d043fd721a49165a419dc0e07ff2c4 (diff)
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
-rw-r--r--pjsip/src/pjsua-lib/pjsua_pres.c2
1 files changed, 1 insertions, 1 deletions
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)