From 3a3f137e0de6ea3acab06f1b4b16ada378caec2b Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 21 Feb 2003 16:56:58 +0000 Subject: 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 --- libjava/java/util/zip/ZipEntry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/java/util/zip/ZipEntry.java') 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; } -- cgit v1.1