git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] ant pull request #:


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@xxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxx