From 1e94ef8839add787001c14d03fc29cf1b84c85b9 Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Thu, 25 Feb 2016 14:41:43 +0100 Subject: fix nullpointer exception --- .../egovernment/moa/id/data/SLOInformationContainer.java | 14 ++++++++++++-- .../id/protocols/pvp2x/builder/SingleLogOutBuilder.java | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'id/server/idserverlib/src/main') diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/SLOInformationContainer.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/SLOInformationContainer.java index ba7f33821..fd1749129 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/SLOInformationContainer.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/data/SLOInformationContainer.java @@ -41,10 +41,20 @@ public class SLOInformationContainer implements Serializable, ISLOInformationCon private static final long serialVersionUID = 7148730740582881862L; private PVPTargetConfiguration sloRequest = null; - private LinkedHashMap activeFrontChannalOAs = null; - private LinkedHashMap activeBackChannelOAs = null; + private LinkedHashMap activeFrontChannalOAs; + private LinkedHashMap activeBackChannelOAs; private List sloFailedOAs = null; + /** + * + */ + public SLOInformationContainer() { + this.activeBackChannelOAs = new LinkedHashMap(); + this.activeFrontChannalOAs = new LinkedHashMap(); + this.sloFailedOAs = new ArrayList(); + + } + /** * @return the activeFrontChannalOAs diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/SingleLogOutBuilder.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/SingleLogOutBuilder.java index cffc9378a..63452bee0 100644 --- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/SingleLogOutBuilder.java +++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/builder/SingleLogOutBuilder.java @@ -504,7 +504,7 @@ public class SingleLogOutBuilder { el.getSessionIndex(), el.getUserNameID(), NameID.TRANSIENT, - PVP2XProtocol.PATH, + PVP2XProtocol.NAME, sloDesc)); } catch (NOSLOServiceDescriptorException e) { -- cgit v1.2.3