Author: pferraro
Date: 2008-10-31 16:34:30 -0400 (Fri, 31 Oct 2008)
New Revision: 2042
Modified:
trunk/mod_cluster/src/main/java/org/jboss/modcluster/mcmp/MCMPUtils.java
Log:
Fixed NullPointerException in getResetRequests()
Modified: trunk/mod_cluster/src/main/java/org/jboss/modcluster/mcmp/MCMPUtils.java
===================================================================
--- trunk/mod_cluster/src/main/java/org/jboss/modcluster/mcmp/MCMPUtils.java 2008-10-31
20:19:04 UTC (rev 2041)
+++ trunk/mod_cluster/src/main/java/org/jboss/modcluster/mcmp/MCMPUtils.java 2008-10-31
20:34:30 UTC (rev 2042)
@@ -287,12 +287,15 @@
VirtualHost responseHost = null;
- for (VirtualHost virtualHost: virtualHosts)
+ if (virtualHosts != null)
{
- if (virtualHost.getAliases().contains(hostName))
+ for (VirtualHost virtualHost: virtualHosts)
{
- responseHost = virtualHost;
- break;
+ if (virtualHost.getAliases().contains(hostName))
+ {
+ responseHost = virtualHost;
+ break;
+ }
}
}
Show replies by date