[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 #:

Github user bodewig commented on the pull request:

    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]