diff options
author | Tom Tromey <tromey@redhat.com> | 2002-07-02 02:46:27 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-07-02 02:46:27 +0000 |
commit | 49925aed134286e8c838cd84281b19cecd7dec1a (patch) | |
tree | fe5b4de57e2db130d0e20b8ab5f6f79b64d6cf94 | |
parent | 615ae4553acd9e08edbf1a84814297b68bf6be66 (diff) | |
download | gcc-49925aed134286e8c838cd84281b19cecd7dec1a.zip gcc-49925aed134286e8c838cd84281b19cecd7dec1a.tar.gz gcc-49925aed134286e8c838cd84281b19cecd7dec1a.tar.bz2 |
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
-rw-r--r-- | libjava/ChangeLog | 6 | ||||
-rw-r--r-- | libjava/javax/naming/spi/NamingManager.java | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 84ae3a2..e6d8de1 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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. diff --git a/libjava/javax/naming/spi/NamingManager.java b/libjava/javax/naming/spi/NamingManager.java index 53eeb3a..d3f419f 100644 --- a/libjava/javax/naming/spi/NamingManager.java +++ b/libjava/javax/naming/spi/NamingManager.java @@ -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, |