mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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:
committed by
Mark Wielaard
parent
7fb1c86d07
commit
3a3f137e0d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user