[GitHub] ant pull request #:

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] ant pull request #:

bodewig
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: [hidden email]
For additional commands, e-mail: [hidden email]