From 6cac5fc6f5bf044b0058f1676e4b5f23538d592e Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Tue, 4 Feb 2014 14:35:30 +0100 Subject: [PATCH] Fixed can't find network.encryption javascript error --- js/settings/NetworkPanel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/settings/NetworkPanel.js b/js/settings/NetworkPanel.js index 26e925e..1a9957a 100644 --- a/js/settings/NetworkPanel.js +++ b/js/settings/NetworkPanel.js @@ -265,10 +265,11 @@ function NetworkPanel() { console.log("NetworkPanel:selectNetwork: ",ssid); if(ssid == "") return; _selectedNetwork = ssid; - if(_networks == undefined || ssid == CLIENT_MODE_STATE.NOT_CONNECTED) { + if(ssid == CLIENT_MODE_STATE.NOT_CONNECTED) { hideWiFiPassword(); } else { var network = _networks[ssid]; + if(network === undefined) return; if(network.encryption == "none") { hideWiFiPassword(); } else {