Need to allow for unnamed groups.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 27 Apr 2005 17:31:13 +0000 (17:31 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Wed, 27 Apr 2005 17:31:13 +0000 (17:31 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1568 cb58f699-b61c-0410-a6fe-9272a202ed29

xmlproviders/XMLMetadata.cpp

index ad2e3e3..3b2e371 100644 (file)
@@ -1167,8 +1167,12 @@ XMLMetadataImpl::EntitiesDescriptor::EntitiesDescriptor(
         }
     }
 
-    auto_ptr_char n(m_name);
-    wrapper->m_groups.insert(pair<string,const EntitiesDescriptor*>(n.get(),this));
+    if (!saml::XML::isEmpty(m_name)) {
+        auto_ptr_char n(m_name);
+        wrapper->m_groups.insert(pair<string,const EntitiesDescriptor*>(n.get(),this));
+    }
+    else
+        m_name=NULL;
 }
 
 XMLMetadataImpl::EntitiesDescriptor::~EntitiesDescriptor()