summaryrefslogtreecommitdiff
path: root/java/util/zip/ZipFile.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2003-07-13 23:48:25 +0000
committerMark Wielaard <mark@klomp.org>2003-07-13 23:48:25 +0000
commitdcdb4b201462d666487a00c7b059f993058a8cb2 (patch)
tree6c342859a6977135184c30cc222ecb637272377b /java/util/zip/ZipFile.java
parentefdc12ae46b6263f5c0e8009475c0eeabc591071 (diff)
downloadclasspath-dcdb4b201462d666487a00c7b059f993058a8cb2.tar.gz
2003-07-13 Jeroen Frijters <jeroen@sumatra.nl>
* java/util/zip/ZipFile.java (finalize): Check raf for null to prevent NullPointerException if the file was never constructed.
Diffstat (limited to 'java/util/zip/ZipFile.java')
-rw-r--r--java/util/zip/ZipFile.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/util/zip/ZipFile.java b/java/util/zip/ZipFile.java
index 06238cea1..b6bc5414d 100644
--- a/java/util/zip/ZipFile.java
+++ b/java/util/zip/ZipFile.java
@@ -308,7 +308,7 @@ public class ZipFile implements ZipConstants
*/
protected void finalize() throws IOException
{
- if (!closed) close();
+ if (!closed && raf != null) close();
}
/**