diff options
author | peter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-01-14 18:41:53 +0000 |
---|---|---|
committer | peter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d> | 2007-01-14 18:41:53 +0000 |
commit | 23aff3a9c79423ceff64b4ca66649ab50f0fd455 (patch) | |
tree | c9298cb9cc35771bccea9d37f1a99fb99b5aad24 /id.server/src/at/gv/egovernment/moa/id/auth | |
parent | 2b98dc6c991e089e5d73b3053b10b40d4d297837 (diff) | |
download | moa-id-spss-23aff3a9c79423ceff64b4ca66649ab50f0fd455.tar.gz moa-id-spss-23aff3a9c79423ceff64b4ca66649ab50f0fd455.tar.bz2 moa-id-spss-23aff3a9c79423ceff64b4ca66649ab50f0fd455.zip |
Tolerate empty Strings als SAML-AttrValues
git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@780 d688527b-c9ab-4aba-bd8d-4036d912da1d
Diffstat (limited to 'id.server/src/at/gv/egovernment/moa/id/auth')
-rw-r--r-- | id.server/src/at/gv/egovernment/moa/id/auth/parser/CreateXMLSignatureResponseParser.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/id.server/src/at/gv/egovernment/moa/id/auth/parser/CreateXMLSignatureResponseParser.java b/id.server/src/at/gv/egovernment/moa/id/auth/parser/CreateXMLSignatureResponseParser.java index 6287c99dd..5e1df5157 100644 --- a/id.server/src/at/gv/egovernment/moa/id/auth/parser/CreateXMLSignatureResponseParser.java +++ b/id.server/src/at/gv/egovernment/moa/id/auth/parser/CreateXMLSignatureResponseParser.java @@ -140,7 +140,11 @@ public class CreateXMLSignatureResponseParser { Element attrValueElem = (Element)XPathUtils.selectSingleNode(samlAttr, SAML_ATTRIBUTE_VALUE_XPATH); attrValue = DOMUtils.getElementFromNodeList(attrValueElem.getChildNodes()); if (attrValue == null) { - attrValue = attrValueElem.getFirstChild().getNodeValue(); + if (null!=attrValueElem.getFirstChild()) { + attrValue = attrValueElem.getFirstChild().getNodeValue(); + } else { + attrValue = ""; + } } samlAttributes.add(new SAMLAttribute(attrName, attrNamespace, attrValue)); } |