diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2015-09-23 23:18:26 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2015-09-23 23:18:26 +0200 |
commit | 4aab06b9a79a40d24b6cabab0f795df0880c807a (patch) | |
tree | 880082c0d97c631c15db81bbeca72c9690835634 /id/ConfigWebTool/src/main/java/at/gv/egovernment/moa | |
parent | 56b710a86d5bb559c0043f4c5bf1e574f39f4a68 (diff) | |
download | moa-id-spss-4aab06b9a79a40d24b6cabab0f795df0880c807a.tar.gz moa-id-spss-4aab06b9a79a40d24b6cabab0f795df0880c807a.tar.bz2 moa-id-spss-4aab06b9a79a40d24b6cabab0f795df0880c807a.zip |
fix NullPointerException if moa-id-configuration user has only bPK identifier and username and password is requested
Diffstat (limited to 'id/ConfigWebTool/src/main/java/at/gv/egovernment/moa')
-rw-r--r-- | id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/usermanagement/FileBasedUserConfiguration.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/usermanagement/FileBasedUserConfiguration.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/usermanagement/FileBasedUserConfiguration.java index b1bba7289..986dc0db5 100644 --- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/usermanagement/FileBasedUserConfiguration.java +++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/config/usermanagement/FileBasedUserConfiguration.java @@ -208,7 +208,8 @@ public class FileBasedUserConfiguration List<UserDatabase> allUsers = getAllUsers(); for (UserDatabase user : nullGuard(allUsers)) { - if (user.getUsername().equals(username)) { + if (MiscUtil.isNotEmpty(user.getUsername()) + && user.getUsername().equals(username)) { result = user; break; } |