diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-08-28 16:05:54 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2017-08-28 16:05:54 +0200 |
commit | 4c59c85ac46957ed4610b9f2c19467cf8026705d (patch) | |
tree | 0c4fe490158f8e6cebc86595e0dc09b81ef8e573 /id | |
parent | fab8bb66ea62eb23e806ad280008c5f722d684ec (diff) | |
download | moa-id-spss-4c59c85ac46957ed4610b9f2c19467cf8026705d.tar.gz moa-id-spss-4c59c85ac46957ed4610b9f2c19467cf8026705d.tar.bz2 moa-id-spss-4c59c85ac46957ed4610b9f2c19467cf8026705d.zip |
catch possible NullPointerException
Diffstat (limited to 'id')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/verification/EntityVerifier.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/verification/EntityVerifier.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/verification/EntityVerifier.java index 2ded32bac..d05d180e1 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/verification/EntityVerifier.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/verification/EntityVerifier.java @@ -55,6 +55,12 @@ public class EntityVerifier { try { IOAAuthParameters oa = AuthConfigurationProviderFactory.getInstance().getOnlineApplicationParameter(entityID); + if (oa == null) { + Logger.debug("No OnlineApplication with EntityID: " + entityID); + return null; + + } + String certBase64 = oa.getConfigurationValue(MOAIDConfigurationConstants.SERVICE_PROTOCOLS_PVP2X_CERTIFICATE); if (MiscUtil.isNotEmpty(certBase64)) { return Base64Utils.decode(certBase64, false); |