diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-11-02 13:12:22 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2015-11-02 13:12:22 +0100 |
commit | 5dc17488946bc896f2dfd10d0f839eec42e3b63b (patch) | |
tree | df8be7c8385eaaffadc2760d57962b919f9f0b52 /id/ConfigWebTool | |
parent | 2d3a2e41dccd4e5d5a3786b5dbbdce8dd8c3c214 (diff) | |
download | moa-id-spss-5dc17488946bc896f2dfd10d0f839eec42e3b63b.tar.gz moa-id-spss-5dc17488946bc896f2dfd10d0f839eec42e3b63b.tar.bz2 moa-id-spss-5dc17488946bc896f2dfd10d0f839eec42e3b63b.zip |
fix possible dependency problem with W3C DOM elements
Diffstat (limited to 'id/ConfigWebTool')
-rw-r--r-- | id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/IndexAction.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/IndexAction.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/IndexAction.java index 040931b42..4fecd89c1 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/IndexAction.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/struts/action/IndexAction.java @@ -420,11 +420,11 @@ public class IndexAction extends BasicAction { String strAttributeName = attributes.get(x).getDOM().getAttribute("Name"); if (strAttributeName.equals(PVPConstants.PRINCIPAL_NAME_NAME)) { - user.setFamilyName(attributes.get(x).getAttributeValues().get(0).getDOM().getTextContent()); + user.setFamilyName(attributes.get(x).getAttributeValues().get(0).getDOM().getFirstChild().getNodeValue()); } if (strAttributeName.equals(PVPConstants.GIVEN_NAME_NAME)) { - user.setGivenName(attributes.get(x).getAttributeValues().get(0).getDOM().getTextContent()); + user.setGivenName(attributes.get(x).getAttributeValues().get(0).getDOM().getFirstChild().getNodeValue()); } if (strAttributeName.equals(PVPConstants.MANDATE_TYPE_NAME)) { @@ -432,7 +432,7 @@ public class IndexAction extends BasicAction { } if (strAttributeName.equals(PVPConstants.MANDATE_LEG_PER_FULL_NAME_NAME)) { - user.setInstitut(attributes.get(x).getAttributeValues().get(0).getDOM().getTextContent()); + user.setInstitut(attributes.get(x).getAttributeValues().get(0).getDOM().getFirstChild().getNodeValue()); } } } |