From 317a429bec19e0b078ea024a28562805a56716f1 Mon Sep 17 00:00:00 2001 From: Kirill Solomko Date: Mon, 18 Apr 2016 15:20:53 +0200 Subject: [PATCH] MT#19113 fix an error when no callee peers are found Change-Id: I217fd321ac008ed58014d1f14630db818e5fad1e --- lib/NGCP/Panel/Controller/CallRouting.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Controller/CallRouting.pm b/lib/NGCP/Panel/Controller/CallRouting.pm index 30e6cb8d7f..0d0d1a27df 100644 --- a/lib/NGCP/Panel/Controller/CallRouting.pm +++ b/lib/NGCP/Panel/Controller/CallRouting.pm @@ -322,7 +322,7 @@ sub callroutingverify :Chained('/') :PathPart('callroutingverify') :Args(0) { caller => $data->{caller_in}, callee => $data->{callee_in}, ); - unless (scalar @{$data->{callee_peers}}) { + unless ($data->{callee_peers} && scalar @{$data->{callee_peers}}) { push @log, sprintf "no callee peers found"; goto RESULT; }