Author: bstansberry(a)jboss.com
Date: 2008-09-30 06:51:12 -0400 (Tue, 30 Sep 2008)
New Revision: 1918
Modified:
trunk/mod_cluster/src/main/java/org/jboss/modcluster/ha/ClusteredMCMPHandlerImpl.java
Log:
Fix ArrayIndexOutOfBoundsException
Modified:
trunk/mod_cluster/src/main/java/org/jboss/modcluster/ha/ClusteredMCMPHandlerImpl.java
===================================================================
---
trunk/mod_cluster/src/main/java/org/jboss/modcluster/ha/ClusteredMCMPHandlerImpl.java 2008-09-30
06:41:58 UTC (rev 1917)
+++
trunk/mod_cluster/src/main/java/org/jboss/modcluster/ha/ClusteredMCMPHandlerImpl.java 2008-09-30
10:51:12 UTC (rev 1918)
@@ -211,7 +211,7 @@
{
synchronized (this.errorState)
{
- if (this.errorState.size() > 0 || this.errorState.get(this.errorState.size()
- 1).booleanValue())
+ if (this.errorState.size() > 0 &&
this.errorState.get(this.errorState.size() - 1).booleanValue())
{
this.errorState.remove(0);
}
Show replies by date