aboutsummaryrefslogtreecommitdiff
path: root/id/ConfigWebTool/src/main/java/at/gv/egovernment
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2014-05-20 08:17:56 +0200
committerThomas Lenz <thomas.lenz@egiz.gv.at>2014-05-20 08:17:56 +0200
commit34be99015cbc990af2206f354dbffcacd69ba1c3 (patch)
tree4629dc884805590b42719091383e03cc84517e69 /id/ConfigWebTool/src/main/java/at/gv/egovernment
parent5bc23bcbeb8b82eec3eabce0c582db8fb4a3c64a (diff)
downloadmoa-id-spss-34be99015cbc990af2206f354dbffcacd69ba1c3.tar.gz
moa-id-spss-34be99015cbc990af2206f354dbffcacd69ba1c3.tar.bz2
moa-id-spss-34be99015cbc990af2206f354dbffcacd69ba1c3.zip
Signed-off-by: Thomas Lenz <thomas.lenz@egiz.gv.at>
Fix STORK NullPointerException
Diffstat (limited to 'id/ConfigWebTool/src/main/java/at/gv/egovernment')
-rw-r--r--id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java
index f5c92fec9..be5b2200b 100644
--- a/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java
+++ b/id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java
@@ -62,8 +62,13 @@ public class OASTORKConfig implements IOnlineApplicationData{
public OASTORKConfig() {
// fetch available citizen countries
citizenCountries = new ArrayList<String>();
- for(CPEPS current : ConfigurationDBRead.getMOAIDConfiguration().getAuthComponentGeneral().getForeignIdentities().getSTORK().getCPEPS()) {
- citizenCountries.add(current.getCountryCode());
+ try {
+ for(CPEPS current : ConfigurationDBRead.getMOAIDConfiguration().getAuthComponentGeneral().getForeignIdentities().getSTORK().getCPEPS()) {
+ citizenCountries.add(current.getCountryCode());
+ }
+
+ }catch (NullPointerException e) {
+
}
}