From 92e1d985e08bba7316822486bad8fd23ece614a2 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 28 May 2013 19:01:18 +0000 Subject: [PATCH] Fixed a problem when debug params is set to true and reloadxml command is used it threw an error about nil params on some things. --- includes/install/scripts/app/xml_handler/index.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/includes/install/scripts/app/xml_handler/index.lua b/includes/install/scripts/app/xml_handler/index.lua index d452086430..9716a5eaec 100644 --- a/includes/install/scripts/app/xml_handler/index.lua +++ b/includes/install/scripts/app/xml_handler/index.lua @@ -52,16 +52,18 @@ if (not params) then params = {} function params:getHeader(name) - self.name = name + self.name = name; end function params:serialize(name) - self.name = name + self.name = name; end end --show the params in the console if (debug["params"]) then - freeswitch.consoleLog("notice", "[xml_handler] Params:\n" .. params:serialize() .. "\n"); + if (params:serialize() ~= nil) then + freeswitch.consoleLog("notice", "[xml_handler] Params:\n" .. params:serialize() .. "\n"); + end end --show the xml request in the console