aboutsummaryrefslogtreecommitdiff
path: root/id
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2014-04-02 09:29:41 +0200
committerThomas Lenz <tlenz@iaik.tugraz.at>2014-04-02 09:29:41 +0200
commit8b6831043febd92ce2333bc01c373aa0ad9bc8b2 (patch)
tree3ea0b367d524725a0a62cea5903a670a81f5927a /id
parentb82a8cc5f8178a0cf222db7682df6db1c56051c0 (diff)
downloadmoa-id-spss-8b6831043febd92ce2333bc01c373aa0ad9bc8b2.tar.gz
moa-id-spss-8b6831043febd92ce2333bc01c373aa0ad9bc8b2.tar.bz2
moa-id-spss-8b6831043febd92ce2333bc01c373aa0ad9bc8b2.zip
add a infolog if no Metadata is found
Diffstat (limited to 'id')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/PostBinding.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/PostBinding.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/PostBinding.java
index 6517325b9..11e280d8f 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/PostBinding.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/PostBinding.java
@@ -122,7 +122,13 @@ public class PostBinding implements IDecoder, IEncoder {
MOARequest request = new MOARequest(inboundMessage);
request.setVerified(false);
- request.setEntityID(messageContext.getPeerEntityMetadata().getEntityID());
+
+ if (messageContext.getPeerEntityMetadata() != null)
+ request.setEntityID(messageContext.getPeerEntityMetadata().getEntityID());
+
+ else
+ Logger.info("No Metadata found for OA with EntityID " + inboundMessage.getIssuer().getValue());
+
request.setRelayState(messageContext.getRelayState());
return request;