aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/zip/ZipEntry.java
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2003-02-21 16:56:58 +0000
committerMark Wielaard <mark@gcc.gnu.org>2003-02-21 16:56:58 +0000
commit3a3f137e0de6ea3acab06f1b4b16ada378caec2b (patch)
tree26318ea52d80d9562109c7d00c57bac3e7821484 /libjava/java/util/zip/ZipEntry.java
parent7fb1c86d07111ef6c504d09f3b2a8936449bca11 (diff)
downloadgcc-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.java2
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;
}