From f37aa6afcbf59116ba59d3cac9122ae8348614a1 Mon Sep 17 00:00:00 2001 From: Bianca Schnalzer Date: Tue, 29 Aug 2017 10:36:16 +0200 Subject: jce lib update, Error Handling --- .../java/at/asit/pdfover/gui/utils/CertificateDownloadSource.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils') diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/CertificateDownloadSource.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/CertificateDownloadSource.java index f6c1eb29..31c559db 100644 --- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/CertificateDownloadSource.java +++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/utils/CertificateDownloadSource.java @@ -119,7 +119,8 @@ public class CertificateDownloadSource { continue; } - ConfigProviderImpl cpi = new ConfigProviderImpl(); + if (!certificateNode.getTextContent().equals("")) + {ConfigProviderImpl cpi = new ConfigProviderImpl(); String certResource = Constants.CERTIFICATE_DOWNLOAD_XML_URL + certificateNode.getTextContent(); log.info("===== Starting to download accepted certificates ====="); @@ -136,8 +137,7 @@ public class CertificateDownloadSource { } fis.close(); bis.close(); - - + } } catch (Exception ex) { log.debug(ex.toString()); //$NON-NLS-1$ } -- cgit v1.2.3