aboutsummaryrefslogtreecommitdiff
path: root/id.server/src/at/gv/egovernment
diff options
context:
space:
mode:
authorpeter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d>2007-01-14 18:41:53 +0000
committerpeter.danner <peter.danner@d688527b-c9ab-4aba-bd8d-4036d912da1d>2007-01-14 18:41:53 +0000
commit23aff3a9c79423ceff64b4ca66649ab50f0fd455 (patch)
treec9298cb9cc35771bccea9d37f1a99fb99b5aad24 /id.server/src/at/gv/egovernment
parent2b98dc6c991e089e5d73b3053b10b40d4d297837 (diff)
downloadmoa-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')
-rw-r--r--id.server/src/at/gv/egovernment/moa/id/auth/parser/CreateXMLSignatureResponseParser.java6
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));
}