Author: ron.sigal(a)jboss.com
Date: 2008-04-29 02:37:37 -0400 (Tue, 29 Apr 2008)
New Revision: 4091
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/metadata/MetadataTestCase.java
Log:
JBREM-930: Fixed ArrayIndexOutOfBoundsException.
Modified:
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/metadata/MetadataTestCase.java
===================================================================
---
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/metadata/MetadataTestCase.java 2008-04-29
06:34:56 UTC (rev 4090)
+++
remoting2/branches/2.x/src/tests/org/jboss/test/remoting/detection/metadata/MetadataTestCase.java 2008-04-29
06:37:37 UTC (rev 4091)
@@ -193,7 +193,8 @@
{
NetworkNotification netNot = (NetworkNotification) notification;
ServerInvokerMetadata[] serverMetadata = netNot.getServerInvokers();
- subSystem = serverMetadata[0].getSubSystems()[0];
+ if (serverMetadata.length > 0)
+ subSystem = serverMetadata[0].getSubSystems()[0];
}
}
Show replies by date