User: starksm
Date: 01/04/22 23:43:18
Modified: src/main/org/jnp/interfaces NamingContext.java
Log:
Handle a name that consists only of the scheme
Revision Changes Path
1.8 +2 -2 jnp/src/main/org/jnp/interfaces/NamingContext.java
Index: NamingContext.java
===================================================================
RCS file: /cvsroot/jboss/jnp/src/main/org/jnp/interfaces/NamingContext.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- NamingContext.java 2001/04/23 06:08:06 1.7
+++ NamingContext.java 2001/04/23 06:43:17 1.8
@@ -33,7 +33,7 @@
* @see <related>
* @author oberg
* @author [EMAIL PROTECTED]
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*/
public class NamingContext
implements Context, java.io.Serializable
@@ -182,7 +182,7 @@
{
// Scheme was "url:/..."
n.remove(0);
- if( n.get(0).equals("") && n.size() > 1 )
+ if( n.size() > 1 && n.get(0).equals("") )
{
// Scheme was "url://hostname:port/..."
// Get hostname:port value for the naming server
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development