diff options
| author | Mark Wielaard <mark@klomp.org> | 2003-07-13 23:48:25 +0000 |
|---|---|---|
| committer | Mark Wielaard <mark@klomp.org> | 2003-07-13 23:48:25 +0000 |
| commit | dcdb4b201462d666487a00c7b059f993058a8cb2 (patch) | |
| tree | 6c342859a6977135184c30cc222ecb637272377b /java/util/zip/ZipFile.java | |
| parent | efdc12ae46b6263f5c0e8009475c0eeabc591071 (diff) | |
| download | classpath-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.java | 2 |
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(); } /** |
