From 5dc17488946bc896f2dfd10d0f839eec42e3b63b Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Mon, 2 Nov 2015 13:12:22 +0100 Subject: fix possible dependency problem with W3C DOM elements --- .../egovernment/moa/id/configuration/struts/action/IndexAction.java | 6 +++--- 1 file 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()); } } } -- cgit v1.2.3