[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...
Ron Sigal
ron_sigal at yahoo.com
Tue Nov 21 00:37:56 EST 2006
User: rsigal
Date: 06/11/21 00:37:56
Modified: src/main/org/jboss/remoting Client.java
Log:
JBREM-605: Added test for consistency of listenerIds in acknowledgeCallbacks().
Revision Changes Path
1.56 +6 -1 JBossRemoting/src/main/org/jboss/remoting/Client.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Client.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/Client.java,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -b -r1.55 -r1.56
--- Client.java 16 Nov 2006 04:03:49 -0000 1.55
+++ Client.java 21 Nov 2006 05:37:56 -0000 1.56
@@ -63,7 +63,7 @@
*
* @author <a href="mailto:jhaynie at vocalocity.net">Jeff Haynie</a>
* @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
- * @version $Revision: 1.55 $
+ * @version $Revision: 1.56 $
*/
public class Client implements Externalizable
{
@@ -1279,6 +1279,11 @@
responseList.add(response);
String nextListenerId = (String) returnPayload.get(LISTENER_ID_KEY);
+ if (nextListenerId == null)
+ {
+ throw new Exception("Cannot acknowledge callbacks: " +
+ "callback " + callbackId + " has null listener id");
+ }
if (i == 0)
{
listenerId = nextListenerId;
More information about the jboss-cvs-commits
mailing list