From acb862a11506d9cdbd31b7a2642f4c62974a0184 Mon Sep 17 00:00:00 2001 From: luk3yx Date: Mon, 5 Apr 2021 21:08:43 +1200 Subject: [PATCH] Add missing nil check --- builtin/mainmenu/common.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/mainmenu/common.lua b/builtin/mainmenu/common.lua index aed36ff4f..1d453f21e 100644 --- a/builtin/mainmenu/common.lua +++ b/builtin/mainmenu/common.lua @@ -83,7 +83,8 @@ end -------------------------------------------------------------------------------- function render_serverlist_row(spec, is_favorite, is_approved) -- Get information from non_mobile_servers. - if is_favorite and not spec.proto_min and menudata.non_mobile_servers then + if is_favorite and not spec.proto_min and menudata.non_mobile_servers and + spec.address and spec.port then local id = ("%s:%s"):format(spec.address, spec.port) spec = menudata.non_mobile_servers[id] or spec end