From 959bc875d6038fc6983006a92a9cecc5c30ecfb6 Mon Sep 17 00:00:00 2001 From: Klaus Stranacher Date: Tue, 4 Mar 2014 15:52:58 +0100 Subject: Updates for MOA-SPSS v1.5.2 Check if certificate import is not empty from TSL --- .../at/gv/egovernment/moa/spss/tsl/timer/TSLUpdaterTimerTask.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'spss/server/serverlib') diff --git a/spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/tsl/timer/TSLUpdaterTimerTask.java b/spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/tsl/timer/TSLUpdaterTimerTask.java index 0cb18a08e..5456701c0 100644 --- a/spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/tsl/timer/TSLUpdaterTimerTask.java +++ b/spss/server/serverlib/src/main/java/at/gv/egovernment/moa/spss/tsl/timer/TSLUpdaterTimerTask.java @@ -170,7 +170,12 @@ public class TSLUpdaterTimerTask extends TimerTask { fis.close(); } - // convert ArrayList to X509Certificate[] + // convert ArrayList to X509Certificate[] + if (tsl_certs == null) { + Logger.error("No certificates from TSL imported."); + throw new TSLSearchException("No certificates from TSL imported."); + } + X509Certificate[] addCertificatesTSL = new X509Certificate[tsl_certs.size()]; Iterator itcert = tsl_certs.iterator(); i = 0; -- cgit v1.2.3