diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-04-02 09:29:41 +0200 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2014-04-02 09:29:41 +0200 |
commit | 8b6831043febd92ce2333bc01c373aa0ad9bc8b2 (patch) | |
tree | 3ea0b367d524725a0a62cea5903a670a81f5927a /id/server | |
parent | b82a8cc5f8178a0cf222db7682df6db1c56051c0 (diff) | |
download | moa-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/server')
-rw-r--r-- | id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/binding/PostBinding.java | 8 |
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; |