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

[GitHub] ant pull request #:

Github user bodewig commented on the pull request:
    In src/main/org/apache/tools/ant/taskdefs/optional/net/
    In src/main/org/apache/tools/ant/taskdefs/optional/net/ on line 962:
    stefan@numpad:/tmp$ cat 
    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>(
    	at X.main(
    I'm afraid it is not.


To unsubscribe, e-mail: dev-unsubscribe@xxxxxxxxxxxxxx
For additional commands, e-mail: dev-help@xxxxxxxxxxxxxx