diff --git a/lib/NGCP/Panel/Controller/Sound.pm b/lib/NGCP/Panel/Controller/Sound.pm index f88afa3512..573316c367 100644 --- a/lib/NGCP/Panel/Controller/Sound.pm +++ b/lib/NGCP/Panel/Controller/Sound.pm @@ -822,6 +822,8 @@ sub handles_load_default :Chained('handles_list') :PathPart('loaddefault') :Args }); } + next unless defined($fres); + SWITCH: for ($fres->handle->group->name) { /^calling_card$/ && do { NGCP::Panel::Utils::Sems::clear_audio_cache($c, "appserver", $fres->set_id, $fres->handle->name);