mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-29 08:20:27 +08:00
Fix null pointer bug.
From-SVN: r45692
This commit is contained in:
parent
216183ce28
commit
bb7fd9624b
@ -1,3 +1,8 @@
|
||||
2001-09-19 Anthony Green <green@redhat.com>
|
||||
|
||||
* gnu/gcj/protocol/file/Handler.java: Avoid NullPointerException
|
||||
when host is null.
|
||||
|
||||
2001-09-17 Andreas Jaeger <aj@suse.de>
|
||||
|
||||
* jni.cc (array_from_valist): Use promoted types for va_arg.
|
||||
|
@ -32,7 +32,8 @@ public class Handler extends URLStreamHandler
|
||||
{
|
||||
// If a hostname is set, then we need to switch protocols to ftp
|
||||
// in order to transfer this from the remote host.
|
||||
if (! url.getHost().equals(""))
|
||||
String host = url.getHost();
|
||||
if ((host != null) && (! host.equals("")))
|
||||
{
|
||||
// Reset the protocol (and implicitly the handler) for this URL.
|
||||
// Then have the URL attempt the connection again, as it will
|
||||
|
Loading…
x
Reference in New Issue
Block a user