aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2018-06-06 14:13:38 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2018-06-06 14:13:38 +0200
commitad02267b4f5c7e21cc929dd3d322771da087b0db (patch)
tree67a2b7232ee5db4f93264c3058ce475b2bdff875 /id/server/idserverlib/src
parent2376b4247adab09ad5e6991ba2a1511a8683bda7 (diff)
downloadmoa-id-spss-ad02267b4f5c7e21cc929dd3d322771da087b0db.tar.gz
moa-id-spss-ad02267b4f5c7e21cc929dd3d322771da087b0db.tar.bz2
moa-id-spss-ad02267b4f5c7e21cc929dd3d322771da087b0db.zip
return checkcode false if no whitelist was loaded
Diffstat (limited to 'id/server/idserverlib/src')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/data/UserWhitelistStore.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/data/UserWhitelistStore.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/data/UserWhitelistStore.java
index 71bd0f3c0..38bcfa2af 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/data/UserWhitelistStore.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/config/auth/data/UserWhitelistStore.java
@@ -67,8 +67,11 @@ public class UserWhitelistStore {
* @param bPK
* @return true if bPK is in whitelist, otherwise false
*/
- public boolean isUserbPKInWhitelist(String bPK) {
- return whitelist.contains(bPK);
+ public boolean isUserbPKInWhitelist(String bPK) {
+ if (whitelist != null)
+ return whitelist.contains(bPK);
+ else
+ return false;
}