diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 4b8257d880..4a3c9a3062 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -577,7 +577,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_collect_digits_callback(switch_core_s switch_time_t started = 0; uint32_t elapsed; - if (!args->input_callback) { + if (!args || !args->input_callback) { return SWITCH_STATUS_GENERR; }