[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r23898: {arm} fix: crashing issue when nickname was undefined but displaye (arm/trunk/src/interface)



Author: atagar
Date: 2010-12-07 03:35:21 +0000 (Tue, 07 Dec 2010)
New Revision: 23898

Modified:
   arm/trunk/src/interface/connPanel.py
Log:
fix: crashing issue when nickname was undefined but displayed on the connection panel



Modified: arm/trunk/src/interface/connPanel.py
===================================================================
--- arm/trunk/src/interface/connPanel.py	2010-12-06 18:16:30 UTC (rev 23897)
+++ arm/trunk/src/interface/connPanel.py	2010-12-07 03:35:21 UTC (rev 23898)
@@ -180,6 +180,7 @@
     try:
       self.address = "" # fetched when needed if unset
       self.nickname = self.conn.get_option("Nickname")[0][1]
+      if self.nickname == None: self.nickname = "Unnamed"
       
       self.orPort = self.conn.get_option("ORPort")[0][1]
       self.dirPort = self.conn.get_option("DirPort")[0][1]