ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bodewig <...@git.apache.org>
Subject [GitHub] ant pull request #:
Date Wed, 11 Apr 2018 12:54:42 GMT
Github user bodewig commented on the pull request:

    https://github.com/apache/ant/commit/cc41d3c1611c3a091e489fc026b33afd02f7eaed#commitcomment-28526626
  
    In src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java:
    In src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java on line 962:
    ```
    stefan@numpad:/tmp$ cat X.java 
    public class X {
    
        public static void main(String[] args) {
            StringBuilder x = new StringBuilder(args.length == 0 ? null : args[0]);
            System.err.println(x.append(" <--").toString());
        }
    }
    stefan@numpad:/tmp$ java X foo
    foo <--
    stefan@numpad:/tmp$ java X
    Exception in thread "main" java.lang.NullPointerException
    	at java.lang.StringBuilder.<init>(StringBuilder.java:112)
    	at X.main(X.java:4)
    ```
    
    I'm afraid it is not.


---

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


Mime
View raw message