Added check when recipient do not have a correspondign endpoint defined. Not a fix but a workaround

until https://github.com/ntop/ntopng/issues/4389 is fixed
This commit is contained in:
Luca Deri 2020-09-10 12:06:24 +02:00
parent 6924651ec5
commit 4253d44996

View file

@ -25,8 +25,10 @@ local recipients = recipients_instance:get_all_recipients()
-- Builtin recipients will be possibly included later and made uneditable from the UI
local res = {}
for _, recipient in pairs(recipients) do
if not recipient.endpoint_conf.builtin then
res[#res + 1] = recipient
if recipient.endpoint_conf then
if not recipient.endpoint_conf.builtin then
res[#res + 1] = recipient
end
end
end