From cdd94c6f8d4dd08b61641de615bfdb6095df52c4 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Thu, 18 Jun 2026 13:26:55 +0200 Subject: [PATCH] kindle: fix possible crash when not connected to a network but wifi is on (#15519) --- frontend/device/kindle/device.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,