diff --git a/product/ERP5Type/DocumentationHelper/CatalogMethodDocumentationHelper.py b/product/ERP5Type/DocumentationHelper/CatalogMethodDocumentationHelper.py
index 82fa4cd87969f2cdc1061085a74c33b700586c6d..506088dd5db54604edc97c76fd3bb56befd8d590 100644
--- a/product/ERP5Type/DocumentationHelper/CatalogMethodDocumentationHelper.py
+++ b/product/ERP5Type/DocumentationHelper/CatalogMethodDocumentationHelper.py
@@ -66,10 +66,10 @@ class CatalogMethodDocumentationHelper(DocumentationHelper):
   security.declareProtected(Permissions.AccessContentsInformation, 'getSource' )
   def getSource(self):
     """
-    Returns the source code of the documentation helper
+    Returns the source code the catalog method
     """
     from zLOG import LOG, INFO
-    source_code =  getattr(self.getDocumentedObject(), 'src', '')
+    source_code = getattr(self.getDocumentedObject(), 'src', '')
     portal_transforms = getattr(self, 'portal_transforms', None)
     if portal_transforms is not None:
       REQUEST = getattr(self, 'REQUEST', None)
diff --git a/product/ERP5Type/DocumentationHelper/PortalTypeRoleDocumentationHelper.py b/product/ERP5Type/DocumentationHelper/PortalTypeRoleDocumentationHelper.py
index 3de0c52ab6a26be68835f78a34a32b85c24a83c6..c6afc1fb5cf7e7deafa81d05171c93e17cb3a425 100644
--- a/product/ERP5Type/DocumentationHelper/PortalTypeRoleDocumentationHelper.py
+++ b/product/ERP5Type/DocumentationHelper/PortalTypeRoleDocumentationHelper.py
@@ -44,7 +44,11 @@ class PortalTypeRoleDocumentationHelper(DocumentationHelper):
 
   security.declareProtected(Permissions.AccessContentsInformation, 'getDescription')
   def getDescription(self):
-    return self.getDocumentedObject().Description()
+    documented_object = self.getDocumentedObject()
+    if documented_object is not None:
+      return documented_object.Description()
+    else:
+      return ''
 
   security.declareProtected(Permissions.AccessContentsInformation, 'getType' )
   def getType(self):