diff --git a/src/mod/applications/mod_valet_parking/mod_valet_parking.c b/src/mod/applications/mod_valet_parking/mod_valet_parking.c index 1b088ec957..c304cad824 100644 --- a/src/mod/applications/mod_valet_parking/mod_valet_parking.c +++ b/src/mod/applications/mod_valet_parking/mod_valet_parking.c @@ -89,7 +89,7 @@ static switch_status_t valet_on_dtmf(switch_core_session_t *session, void *input switch_channel_t *channel = switch_core_session_get_channel(session); switch_dtmf_t *exit_key_pvt = (switch_dtmf_t *) switch_channel_get_private(channel, "_orbit_exit_key_"); - if (dtmf->digit == exit_key_pvt->digit) { + if (exit_key_pvt && dtmf->digit == exit_key_pvt->digit) { const char *dp; const char *exten; const char *context;