NetworkMgr: fix debug trace (#12297)

Prevent crash:
```
./luajit: frontend/util.lua:1092: attempt to get length of local 'str' (a nil value)
stack traceback:
        frontend/util.lua:1092: in function 'fixUtf8'
        frontend/ui/network/manager.lua:1109: in function 'requestToTurnOnWifi'
[…]
```
This commit is contained in:
Benoit Pierre
2024-08-05 17:09:47 +00:00
committed by GitHub
parent f22e8bbbc2
commit a6663202b7

View File

@@ -1106,7 +1106,7 @@ function NetworkMgr:reconnectOrShowNetworkMenu(complete_callback, interactive)
if network.password then
-- If we hit a preferred network and we're not already connected,
-- attempt to connect to said preferred network....
logger.dbg("NetworkMgr: Attempting to authenticate on preferred network", util.fixUtf8(ssid, "<EFBFBD>"))
logger.dbg("NetworkMgr: Attempting to authenticate on preferred network", util.fixUtf8(network.ssid, "<EFBFBD>"))
success, err_msg = self:authenticateNetwork(network)
if success then
ssid = network.ssid