summaryrefslogtreecommitdiff
path: root/BKULocal/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-04-02 16:39:31 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-04-02 16:39:31 +0000
commit3f66cca6bfbcb2087c980b6c6398bbc77adf4380 (patch)
tree284bef5a88851ff946d75f8f156aadb3359014cd /BKULocal/src/main
parent548434356ab1bed905d1ea9de1cd8bdfad212157 (diff)
downloadmocca-3f66cca6bfbcb2087c980b6c6398bbc77adf4380.tar.gz
mocca-3f66cca6bfbcb2087c980b6c6398bbc77adf4380.tar.bz2
mocca-3f66cca6bfbcb2087c980b6c6398bbc77adf4380.zip
Configuration not always available (e.g. PINManagement)
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1067 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKULocal/src/main')
-rw-r--r--BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSTALFactory.java5
1 files changed, 4 insertions, 1 deletions
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);
}
}