1
0

Add missing nil check

This commit is contained in:
luk3yx 2021-04-05 21:08:43 +12:00
parent 27c0663894
commit acb862a115

View File

@ -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