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
This commit is contained in:
parent
7fb1c86d07
commit
3a3f137e0d
@ -1,3 +1,8 @@
|
||||
2003-02-21 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* java/util/zip/ZipEntry.java (setComment): Don't check length when
|
||||
argument is null.
|
||||
|
||||
2003-02-21 Mark Wielaard <mark@klomp.org>
|
||||
|
||||
* java/util/zip/ZipEntry.java (ZipEntry(String)): When name is bigger
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user