HoppeJ / crap4j

Automatically exported from code.google.com/p/crap4j
0 stars 0 forks source link

NullPointerException if testClasses tag is missing #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create ant file with the task which does not have testClasses tag.
2. Run target

Result:
java.lang.NullPointerException
at org.crap4j.anttask.Crap4jAntTask.stringOf(Crap4jAntTask.java:115)
at org.crap4j.anttask.Crap4jAntTask.dumpAttributes(Crap4jAntTask.java:91)
at org.crap4j.anttask.Crap4jAntTask.execute(Crap4jAntTask.java:75)

Expected Result:
Either message about missed tag or using empty value instead of null.

You'll get the same for classes, srces, libClasspath
Stack tarce is visible only in debug mode. From my point of view it's
better to display stacktraces in any mode.

Problem discovered on: crap4j 1.6.1, jdk 1.6, Fedora 11

Original issue reported on code.google.com by a.panasy...@gtempaccount.com on 12 Nov 2009 at 12:14