From bed951c45924804fa2a57b11641ff770ac89270d Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Thu, 4 Apr 2013 17:38:57 +0200 Subject: [PATCH] Return empty table instead of nil in peer load with empty paramater --- ngcp/pp.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ngcp/pp.lua b/ngcp/pp.lua index cecb488..8d5b640 100644 --- a/ngcp/pp.lua +++ b/ngcp/pp.lua @@ -19,12 +19,16 @@ NGCPPeerPrefs_MT = { __index = NGCPPeerPrefs } function NGCPPeerPrefs:caller_load(uuid) if uuid then return self:_load("caller",uuid) + else + return {} end end function NGCPPeerPrefs:callee_load(uuid) if uuid then return self:_load("callee",uuid) + else + return {} end end