ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28456] New: - NullpointerException on flush()
Date Sun, 18 Apr 2004 20:36:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28456>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28456

NullpointerException on flush()

           Summary: NullpointerException on flush()
           Product: Ant
           Version: 1.6.1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: smil@dev.hu


The class org.apache.tools.zip.ZipOutputStream has a small error with the flush 
method.

Here's the patch that will correct it.

Regards,

Tamas serveny

--- ZipOutputStream.old	2004-02-12 13:33:36.000000000 +0000
+++ ZipOutputStream.java	2004-04-18 22:30:32.000000000 +0100
@@ -506,7 +506,7 @@
      * @since 1.14
      */
     public void flush() throws IOException {
-        if (out == null) {
+        if (out != null) {
             out.flush();
         }
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message