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]



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to