diff options
author | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2014-05-20 08:17:56 +0200 |
---|---|---|
committer | Thomas Lenz <thomas.lenz@egiz.gv.at> | 2014-05-20 08:17:56 +0200 |
commit | 34be99015cbc990af2206f354dbffcacd69ba1c3 (patch) | |
tree | 4629dc884805590b42719091383e03cc84517e69 /id/ConfigWebTool/src/main/java/at/gv/egovernment/moa | |
parent | 5bc23bcbeb8b82eec3eabce0c582db8fb4a3c64a (diff) | |
download | moa-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/moa')
-rw-r--r-- | id/ConfigWebTool/src/main/java/at/gv/egovernment/moa/id/configuration/data/oa/OASTORKConfig.java | 9 |
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) { + } } |