]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
error checking
authorMichael Jerris <mike@jerris.com>
Thu, 23 Apr 2009 20:05:45 +0000 (20:05 +0000)
committerMichael Jerris <mike@jerris.com>
Thu, 23 Apr 2009 20:05:45 +0000 (20:05 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13136 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/sofia.c

index e8e7f38133ee2100d4de5257717767036be11186..6834d89b4aaab0be48927d7e407d4b39b25b4a91 100644 (file)
@@ -3998,7 +3998,7 @@ void sofia_handle_sip_i_info(nua_t *nua, sofia_profile_t *profile, nua_handle_t
 
        if (switch_event_create(&event, SWITCH_EVENT_RECV_INFO) == SWITCH_STATUS_SUCCESS) {
                
-               if (sip->sip_content_type) {
+               if (sip && sip->sip_content_type) {
                        switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "SIP-Content-Type", sip->sip_content_type->c_type);
                }