commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r9442 - trunk/gnue-common/src/definitions


From: reinhard
Subject: [gnue] r9442 - trunk/gnue-common/src/definitions
Date: Wed, 14 Mar 2007 07:01:41 -0500 (CDT)

Author: reinhard
Date: 2007-03-14 07:01:40 -0500 (Wed, 14 Mar 2007)
New Revision: 9442

Modified:
   trunk/gnue-common/src/definitions/GParserHelpers.py
Log:
Safety check for name property.


Modified: trunk/gnue-common/src/definitions/GParserHelpers.py
===================================================================
--- trunk/gnue-common/src/definitions/GParserHelpers.py 2007-03-13 10:32:26 UTC 
(rev 9441)
+++ trunk/gnue-common/src/definitions/GParserHelpers.py 2007-03-14 12:01:40 UTC 
(rev 9442)
@@ -502,7 +502,7 @@
     @return: id for the instance
     """
 
-    if hasattr (self, 'name'):
+    if hasattr (self, 'name') and self.name is not None:
       result = self.name.lower ()
       if maxIdLength is not None:
         result = result [:maxIdLength]





reply via email to

[Prev in Thread] Current Thread [Next in Thread]