WirelessLanSetup : fix for 'ap.essid is None'.
authorChang.H.S <jhs@dev3>
Thu, 13 Dec 2012 07:04:51 +0000 (16:04 +0900)
committerChang.H.S <jhs@dev3>
Thu, 13 Dec 2012 07:04:51 +0000 (16:04 +0900)
lib/python/Plugins/SystemPlugins/WirelessLanSetup/plugin.py

index 671cac9..e31075f 100755 (executable)
@@ -577,7 +577,7 @@ class WlanConfig(Screen, ConfigListScreen, HelpableScreen):
                        self.emptyListMsgTimer.start(100,True)
                else:
                        for ap in Iwscanresult:
-                               if ap.essid not in self.apList and len(ap.essid) > 0:
+                               if ap.essid is not None and ap.essid not in self.apList and len(ap.essid) > 0:
                                        self.apList.append(ap.essid)
                self.apList.append('Input hidden ESSID')
                if selectap is not None and selectap in self.apList: