diff --git a/frontend/device/kindle/device.lua b/frontend/device/kindle/device.lua index 346b459d9..3d2a19bc2 100644 --- a/frontend/device/kindle/device.lua +++ b/frontend/device/kindle/device.lua @@ -500,8 +500,8 @@ function Kindle:initNetworkManager(NetworkMgr) signal_level = string.format("%d/%d", network.signal, network.signal_max), signal_quality = qualities[network.signal], -- See comment above about netid being unfortunately optional... - connected = (current_profile.netid and current_profile.netid ~= -1 and current_profile.netid == network.netid) - or (current_profile.netid == nil and current_profile.essid ~= "" and current_profile.essid == network.essid), + connected = current_profile and ((current_profile.netid and current_profile.netid ~= -1 and current_profile.netid == network.netid) + or (current_profile.netid == nil and current_profile.essid ~= "" and current_profile.essid == network.essid)), flags = network.key_mgmt, ssid = network.essid ~= "" and network.essid, password = password,