Author: remy.maucherat(a)jboss.com
Date: 2008-05-13 11:40:30 -0400 (Tue, 13 May 2008)
New Revision: 617
Modified:
trunk/java/org/jboss/web/cluster/ClusterListener.java
Log:
- Add explicit exception for null attribute value.
Modified: trunk/java/org/jboss/web/cluster/ClusterListener.java
===================================================================
--- trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-05-13 14:43:47 UTC (rev
616)
+++ trunk/java/org/jboss/web/cluster/ClusterListener.java 2008-05-13 15:40:30 UTC (rev
617)
@@ -358,6 +358,9 @@
while (keys.hasNext()) {
String key = keys.next();
String value = parameters.get(key);
+ if (value == null) {
+ throw new IllegalStateException("Value for attribute " +
key + " cannot be null");
+ }
keyCC = encoder.encodeURL(key, 0, key.length());
keyCC.append('=');
keyCC = encoder.encodeURL(value, 0, value.length());
Show replies by date