From 3f66cca6bfbcb2087c980b6c6398bbc77adf4380 Mon Sep 17 00:00:00 2001 From: tkellner Date: Mon, 2 Apr 2012 16:39:31 +0000 Subject: Configuration not always available (e.g. PINManagement) git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1067 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- .../src/main/java/at/gv/egiz/bku/local/stal/LocalSTALFactory.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'BKULocal/src') diff --git a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSTALFactory.java b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSTALFactory.java index 9c4ad6dc..86dd7cf3 100644 --- a/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSTALFactory.java +++ b/BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSTALFactory.java @@ -73,7 +73,10 @@ public class LocalSTALFactory implements STALFactory { public static final String USE_SWCARD = "UseSWCard"; public boolean getUseSWCard() { - return configuration.getBoolean(USE_SWCARD, false); + if (configuration == null) + return false; + else + return configuration.getBoolean(USE_SWCARD, false); } } -- cgit v1.2.3