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
This commit is contained in:
Tom Tromey 2002-07-02 02:46:27 +00:00 committed by Tom Tromey
parent 615ae4553a
commit 49925aed13
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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.

View File

@ -1,4 +1,4 @@
/* 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,