Skip to content

Commit 8be49d4

Browse files
committed
Workaround for #9897
1 parent 6528f62 commit 8be49d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/lua/modules/alert_store/host_alert_store.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ function host_alert_store:format_record(value, no_html)
419419
shown_label = host,
420420
reference = reference_html,
421421
country = interface.getHostCountry(host),
422-
is_local = alert_info.alert_generation and alert_info.alert_generation.host_info and alert_info.alert_generation.host_info.localhost,
423-
is_multicast = alert_info.alert_generation and alert_info.alert_generation.host_info and alert_info.alert_generation.host_info.is_multicast
422+
is_local = alert_info.alert_generation and alert_info.alert_generation.host_info and (type(alert_info.alert_generation.host_info) == "table") and alert_info.alert_generation.host_info.localhost,
423+
is_multicast = alert_info.alert_generation and alert_info.alert_generation.host_info and (type(alert_info.alert_generation.host_info) == "table") and alert_info.alert_generation.host_info.is_multicast
424424
}
425425

426426
-- Long, unshortened label

0 commit comments

Comments
 (0)