summaryrefslogtreecommitdiff
path: root/bkucommon
diff options
context:
space:
mode:
authormcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-01-29 09:26:48 +0000
committermcentner <mcentner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2010-01-29 09:26:48 +0000
commit99263a2c36c7241f16385d46ecb7a782dc146303 (patch)
treefff844c67d4c0f5e9ac60c4ccef5290237682554 /bkucommon
parent70990d741f2939af4eff9d27514d4dde556f23ca (diff)
downloadmocca-99263a2c36c7241f16385d46ecb7a782dc146303.tar.gz
mocca-99263a2c36c7241f16385d46ecb7a782dc146303.tar.bz2
mocca-99263a2c36c7241f16385d46ecb7a782dc146303.zip
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
Diffstat (limited to 'bkucommon')
-rw-r--r--bkucommon/src/main/java/at/gv/egiz/bku/slcommands/impl/xsect/SignatureLocation.java12
1 files changed, 1 insertions, 11 deletions
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 <code>n</code>-th child of <code>parent</code> 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);
}
/**