Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#80 NPE when no formatter type is set

release_3.0
closed
Lars Kühne
ANT Task (45)
5
2012-10-10
2003-01-18
Lars Kühne
No

The subelement

  <formatter toFile="${checkstyle-results}"/>

of the checkstyle task results in a NullPointerException:

java.lang.NullPointerException
at
com.puppycrawl.tools.checkstyle.CheckStyleTask$Formatter.createListener(CheckStyleTask.java:426)
at
com.puppycrawl.tools.checkstyle.CheckStyleTask.getListeners(CheckStyleTask.java:328)

Discussion