From f084cbacb8d46993ee86959d2ff5a7f27d1ed1ef Mon Sep 17 00:00:00 2001 From: Luis Goncalves Date: Sat, 8 Feb 2014 12:03:04 +0000 Subject: [PATCH] --- src/main/java/xades4j/verification/XadesVerifierImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/xades4j/verification/XadesVerifierImpl.java b/src/main/java/xades4j/verification/XadesVerifierImpl.java index 443460d3..ed8f2b9c 100644 --- a/src/main/java/xades4j/verification/XadesVerifierImpl.java +++ b/src/main/java/xades4j/verification/XadesVerifierImpl.java @@ -247,7 +247,8 @@ private Date getValidationDate( new QualifyingPropertyVerificationContext.SignedObjectsData( new ArrayList(0), signature)); - QualifyingProperty sigTs = this.qualifyingPropertiesVerifier.verifyProperties(sigTsData, ctx).iterator().next().getProperty(); + Collection props = this.qualifyingPropertiesVerifier.verifyProperties(sigTsData, ctx); + QualifyingProperty sigTs = props.iterator().next().getProperty(); return ((SignatureTimeStampProperty) sigTs).getTime(); }