diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 8451c6e190..32ce348b6b 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -337,7 +337,7 @@ static void actual_sofia_presence_event_handler(switch_event_t *event) status = NULL; } - if (switch_stristr("CS_", status)) { + if (status && switch_stristr("CS_", status)) { status = NULL; }