aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2006-03-20 13:55:29 +0000
committerharald.bratko <harald.bratko@d688527b-c9ab-4aba-bd8d-4036d912da1d>2006-03-20 13:55:29 +0000
commit02d8432a9a0de1d2a36b2857caa9dc11aa9e5470 (patch)
treede721f9345c0ad952fff98dacaba77733a09501e
parent9e1fbb3955c07a908eac6c898ab9ad01e8292432 (diff)
downloadmoa-id-spss-02d8432a9a0de1d2a36b2857caa9dc11aa9e5470.tar.gz
moa-id-spss-02d8432a9a0de1d2a36b2857caa9dc11aa9e5470.tar.bz2
moa-id-spss-02d8432a9a0de1d2a36b2857caa9dc11aa9e5470.zip
Bug fix: NullpointerException, wenn für Supplement-Liste
null übergeben wird. git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@676 d688527b-c9ab-4aba-bd8d-4036d912da1d
-rw-r--r--spss.server/src/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java33
1 files changed, 18 insertions, 15 deletions
diff --git a/spss.server/src/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java b/spss.server/src/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java
index e675a40d6..4642593eb 100644
--- a/spss.server/src/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java
+++ b/spss.server/src/at/gv/egovernment/moa/spss/server/invoke/XMLSignatureVerificationInvoker.java
@@ -363,16 +363,19 @@ public class XMLSignatureVerificationInvoker {
DataObjectFactory factory = DataObjectFactory.getInstance();
DataObject dataObject;
Iterator iter;
-
- for (iter = supplements.iterator(); iter.hasNext();) {
- XMLDataObjectAssociation supplement =
- (XMLDataObjectAssociation) iter.next();
- dataObject =
- factory.createFromXmlDataObjectAssociation(supplement, true, false);
- dataObjectList.add(dataObject);
+
+ if (supplements != null) {
+ for (iter = supplements.iterator(); iter.hasNext();) {
+ XMLDataObjectAssociation supplement =
+ (XMLDataObjectAssociation) iter.next();
+ dataObject =
+ factory.createFromXmlDataObjectAssociation(supplement, true, false);
+ dataObjectList.add(dataObject);
+ }
}
-
+
return dataObjectList;
+
}
/**
@@ -392,9 +395,11 @@ public class XMLSignatureVerificationInvoker {
TransactionContextManager.getInstance().getTransactionContext();
ConfigurationProvider config = context.getConfiguration();
List supplementProfiles = request.getSupplementProfiles();
-
- if (supplementProfiles != null) {
- List supplements = new ArrayList();
+
+ List supplements = new ArrayList();
+
+ if (supplementProfiles != null) {
+
List mappedProfiles =
ProfileMapper.mapSupplementProfiles(supplementProfiles, config);
Iterator iter;
@@ -404,11 +409,9 @@ public class XMLSignatureVerificationInvoker {
(SupplementProfileExplicit) iter.next();
supplements.add(profile.getSupplementProfile());
}
-
- return supplements;
+
}
-
- return null;
+ return supplements;
}
/**