diff options
Diffstat (limited to 'BKULocal/src/main/java/at/gv/egiz/bku')
-rw-r--r-- | BKULocal/src/main/java/at/gv/egiz/bku/local/stal/LocalSTALFactory.java | 5 |
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); } } |