From c1f76317e44bfa2068055ac31b1585d3386cb913 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Thu, 18 May 2000 23:50:34 +0000 Subject: [PATCH] From Gregory R. Warnes : * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null `jarFile', not `jarFileURL'. From-SVN: r34005 --- libjava/ChangeLog | 4 ++++ libjava/gnu/gcj/protocol/jar/Connection.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 556df01567b1..87c7b28dad04 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -5,6 +5,10 @@ jobject. * gnu/gcj/RawData.java: Clarify documentation. + From Gregory R. Warnes : + * gnu/gcj/protocol/jar/Connection.java (getJarFile): Test for null + `jarFile', not `jarFileURL'. + 2000-05-15 Andrew Haley * include/ppc-signal.h: New file. diff --git a/libjava/gnu/gcj/protocol/jar/Connection.java b/libjava/gnu/gcj/protocol/jar/Connection.java index 439594e7262f..4f1a5ec37b5d 100644 --- a/libjava/gnu/gcj/protocol/jar/Connection.java +++ b/libjava/gnu/gcj/protocol/jar/Connection.java @@ -59,7 +59,7 @@ public class Connection extends JarURLConnection if (getUseCaches()) { jarfile = (JarFile) file_cache.get(jarFileURL); - if (jarFileURL == null) + if (jarFile == null) { jarfile = new JarFile (jarFileURL.getFile ()); file_cache.put (jarFileURL, jarfile);