From 3cb88352bdfd5454043a6ee1369330d1fd4aa0dd Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Sun, 7 Aug 2011 22:09:29 +0200 Subject: [PATCH] checking non-null in compositeconfig. --- .../main/java/org/wamblee/xmlrouter/impl/CompositeConfig.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/impl/src/main/java/org/wamblee/xmlrouter/impl/CompositeConfig.java b/impl/src/main/java/org/wamblee/xmlrouter/impl/CompositeConfig.java index 2205210..2523ef8 100644 --- a/impl/src/main/java/org/wamblee/xmlrouter/impl/CompositeConfig.java +++ b/impl/src/main/java/org/wamblee/xmlrouter/impl/CompositeConfig.java @@ -44,6 +44,7 @@ public class CompositeConfig> implements private List values; public CompositeConfig(Id aId) { + notNull("aId", aId); ids = new HashSet>(); id = aId; valueIds = new ArrayList>(); @@ -56,6 +57,7 @@ public class CompositeConfig> implements } public void addConfig(Config aConfig) { + notNull("aConfig", aConfig); if (ids.contains(aConfig.getId())) { throw new DuplicateException(aConfig.getId().toString()); } -- 2.31.1