[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting ...
Ovidiu Feodorov
ovidiu.feodorov at jboss.com
Tue Jan 16 03:10:14 EST 2007
User: ovidiu
Date: 07/01/16 03:10:14
Modified: src/main/org/jboss/remoting Tag: remoting_2_x Client.java
Log:
introduced a more explicite sanity check, otherwise code would fail with a cryptic message
Revision Changes Path
No revision
No revision
1.53.2.13 +7 -2 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.53.2.12
retrieving revision 1.53.2.13
diff -u -b -r1.53.2.12 -r1.53.2.13
--- Client.java 16 Jan 2007 05:49:40 -0000 1.53.2.12
+++ Client.java 16 Jan 2007 08:10:14 -0000 1.53.2.13
@@ -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.53.2.12 $
+ * @version $Revision: 1.53.2.13 $
*/
public class Client implements Externalizable
{
@@ -403,7 +403,12 @@
// if (isConnected())
// return;
- if (invoker == null && locator != null)
+ if (locator == null)
+ {
+ throw new IllegalStateException("Cannot connect a client with a null locator");
+ }
+
+ if (invoker == null)
{
if (socketFactory != null)
{
More information about the jboss-cvs-commits
mailing list