diff options
author | Mark Wielaard <mark@klomp.org> | 2003-02-21 16:56:58 +0000 |
---|---|---|
committer | Mark Wielaard <mark@gcc.gnu.org> | 2003-02-21 16:56:58 +0000 |
commit | 3a3f137e0de6ea3acab06f1b4b16ada378caec2b (patch) | |
tree | 26318ea52d80d9562109c7d00c57bac3e7821484 /libjava/java/util/zip/ZipEntry.java | |
parent | 7fb1c86d07111ef6c504d09f3b2a8936449bca11 (diff) | |
download | gcc-3a3f137e0de6ea3acab06f1b4b16ada378caec2b.zip gcc-3a3f137e0de6ea3acab06f1b4b16ada378caec2b.tar.gz gcc-3a3f137e0de6ea3acab06f1b4b16ada378caec2b.tar.bz2 |
ZipEntry.java (setComment): Don't check length when argument is null.
* java/util/zip/ZipEntry.java (setComment): Don't check length when
argument is null.
From-SVN: r63227
Diffstat (limited to 'libjava/java/util/zip/ZipEntry.java')
-rw-r--r-- | libjava/java/util/zip/ZipEntry.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/util/zip/ZipEntry.java b/libjava/java/util/zip/ZipEntry.java index b705850..5284d79 100644 --- a/libjava/java/util/zip/ZipEntry.java +++ b/libjava/java/util/zip/ZipEntry.java @@ -369,7 +369,7 @@ public class ZipEntry implements ZipConstants, Cloneable */ public void setComment(String comment) { - if (comment.length() > 0xffff) + if (comment != null && comment.length() > 0xffff) throw new IllegalArgumentException(); this.comment = comment; } |