aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2017-08-28 16:05:54 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2017-08-28 16:05:54 +0200
commit4c59c85ac46957ed4610b9f2c19467cf8026705d (patch)
tree0c4fe490158f8e6cebc86595e0dc09b81ef8e573 /id/server/idserverlib
parentfab8bb66ea62eb23e806ad280008c5f722d684ec (diff)
downloadmoa-id-spss-4c59c85ac46957ed4610b9f2c19467cf8026705d.tar.gz
moa-id-spss-4c59c85ac46957ed4610b9f2c19467cf8026705d.tar.bz2
moa-id-spss-4c59c85ac46957ed4610b9f2c19467cf8026705d.zip
catch possible NullPointerException
Diffstat (limited to 'id/server/idserverlib')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/verification/EntityVerifier.java6
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);