Commit 49925aed by Tom Tromey Committed by Tom Tromey

re PR libgcj/7180 (possible bug in javax.naming.spi.NamingManager.getPlusPath())

	* javax/naming/spi/NamingManager.java (getPlusPath): Don't create
	StringTokenizer on null string.  For PR libgcj/7180.
	From daveho@cs.umd.edu.

From-SVN: r55166
parent 615ae455
2002-07-01 Tom Tromey <tromey@redhat.com>
* javax/naming/spi/NamingManager.java (getPlusPath): Don't create
StringTokenizer on null string. For PR libgcj/7180.
From daveho@cs.umd.edu.
2002-06-24 Tom Tromey <tromey@redhat.com>
* java/net/natPlainDatagramSocketImpl.cc (BooleanClass): Removed.
......
/* Copyright (C) 2000, 2001 Free Software Foundation
/* Copyright (C) 2000, 2001, 2002 Free Software Foundation
This file is part of libgcj.
......@@ -166,7 +166,7 @@ public class NamingManager
path = path2;
else if (path2 != null)
path += ":" + path2;
return new StringTokenizer (path, ":");
return new StringTokenizer (path != null ? path : "", ":");
}
public static Object getObjectInstance (Object refInfo,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment