Browse Source

NPE when adding comment to zip file that is not there

PR: 33779


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277746 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
ab3f805895
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/main/org/apache/tools/ant/taskdefs/Zip.java

+ 3
- 1
src/main/org/apache/tools/ant/taskdefs/Zip.java View File

@@ -553,7 +553,9 @@ public class Zip extends MatchingTask {
}
addResources(oldFiles, r, zOut);
}
zOut.setComment(comment);
if (zOut != null) {
zOut.setComment(comment);
}
finalizeZipOutputStream(zOut);

// If we've been successful on an update, delete the


Loading…
Cancel
Save