Shouldn't assume attribute extensibility on XMLObjects.
authorScott Cantor <cantor.2@osu.edu>
Thu, 17 Jul 2008 21:02:39 +0000 (21:02 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 17 Jul 2008 21:02:39 +0000 (21:02 +0000)
shibsp/attribute/ScopedAttributeDecoder.cpp

index 3aadacb..2044d6b 100644 (file)
@@ -116,7 +116,7 @@ shibsp::Attribute* ScopedAttributeDecoder::decode(
                 val = toUTF8((*v)->getTextContent());
                 if (val && *val) {
                     const AttributeExtensibleXMLObject* aexo=dynamic_cast<const AttributeExtensibleXMLObject*>(*v);
-                    xmlscope = aexo->getAttribute(scopeqname);
+                    xmlscope = aexo ? aexo->getAttribute(scopeqname) : NULL;
                     if (xmlscope && *xmlscope) {
                         scope = toUTF8(xmlscope);
                         dest.push_back(pair<string,string>(val,scope));