diff --git a/lib/NGCP/Panel/Utils/Preferences.pm b/lib/NGCP/Panel/Utils/Preferences.pm index 474e12e67f..50a83fbc9b 100644 --- a/lib/NGCP/Panel/Utils/Preferences.pm +++ b/lib/NGCP/Panel/Utils/Preferences.pm @@ -2768,7 +2768,7 @@ sub get_peer_auth_params { peer_host => $prov_object ); } - $prefs->{$attribute} = $rs->first ? $rs->first->value : undef; + $prefs->{$attribute} = $rs && $rs->first ? $rs->first->value : undef; } }