From 99263a2c36c7241f16385d46ecb7a782dc146303 Mon Sep 17 00:00:00 2001 From: mcentner Date: Fri, 29 Jan 2010 09:26:48 +0000 Subject: Fixed Bug#134 (https://egovlabs.gv.at/tracker/index.php?func=detail&aid=514&group_id=13&atid=134). git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@615 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../gv/egiz/bku/slcommands/impl/xsect/SignatureLocation.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'bkucommon') diff --git a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureLocation.java b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureLocation.java index 5ec02893..ebe50b3f 100644 --- a/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureLocation.java +++ b/bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureLocation.java @@ -29,7 +29,6 @@ import javax.xml.xpath.XPathFactory; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.w3c.dom.Node; -import org.w3c.dom.NodeList; import at.buergerkarte.namespaces.securitylayer._1.SignatureInfoCreationType; import at.gv.egiz.bku.slexceptions.SLCommandException; @@ -178,16 +177,7 @@ public class SignatureLocation { * @throws SLCommandException if the n-th child of parent does not exist */ private Node findNextSibling(Node parent, int n) throws SLCommandException { - - NodeList childNodes = parent.getChildNodes(); - Node childNode = childNodes.item(n); - if (childNode == null) { - log.info("SingatureLocation Index '" + n + "' not found in document."); - throw new SLCommandException(4102); - } else { - return childNode.getNextSibling(); - } - + return parent.getChildNodes().item(n); } /** -- cgit v1.2.3