From ea0373723491bd46416cd1fddaec42dfb29b30ff Mon Sep 17 00:00:00 2001
From: Cyrus <24922493+cyrus-dev@users.noreply.github.com>
Date: Mon, 16 Nov 2020 14:49:53 -0500
Subject: [PATCH] Testing travis

---
 .../AbstractAttestationCertificateAuthority.java       | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/HIRS_AttestationCA/src/main/java/hirs/attestationca/AbstractAttestationCertificateAuthority.java b/HIRS_AttestationCA/src/main/java/hirs/attestationca/AbstractAttestationCertificateAuthority.java
index 406b64ce..8ca88f37 100644
--- a/HIRS_AttestationCA/src/main/java/hirs/attestationca/AbstractAttestationCertificateAuthority.java
+++ b/HIRS_AttestationCA/src/main/java/hirs/attestationca/AbstractAttestationCertificateAuthority.java
@@ -361,9 +361,13 @@ public abstract class AbstractAttestationCertificateAuthority
         // generate the identity credential
         LOG.debug("generating credential from identity proof");
         // check the policy set valid date
-        SupplyChainPolicy scp = this.supplyChainValidationService.getPolicy();
-        if (scp != null) {
-            this.validDays = Integer.getInteger(scp.getValidityDays());
+        try {
+            SupplyChainPolicy scp = this.supplyChainValidationService.getPolicy();
+            if (scp != null) {
+                this.validDays = Integer.getInteger(scp.getValidityDays());
+            }
+        } catch (Exception ex) {
+            LOG.error("Error");
         }
         // transform the public key struct into a public key
         PublicKey publicKey = assemblePublicKey(proof.getIdentityKey().getStorePubKey().getKey());