Prevents attempts to perform op. on a nil values (Fixes #525)

This commit is contained in:
Simone Mainardi 2016-04-22 10:20:15 +02:00
parent 1ac7be539a
commit 92f2a33c75

View file

@ -509,7 +509,7 @@ function handleCustomFlowField(key, value)
if(value ~= '0') then
return(formatEpoch(value))
else
return ""
return "0"
end
elseif((rtemplate[tonumber(key)] == 'RTP_IN_JITTER') or (rtemplate[tonumber(key)] == 'RTP_OUT_JITTER')) then
if(value ~= nil and value ~= '0') then