Menu

#1171 Specifying minimum priority from command line gives NPE

PMD-5.1.1
closed
None
PMD
4-Minor
Bug
5.1.0
2014-04-27
2014-03-11
No

It looks like JCommander looks for declared constructors on converters, and so there is no constructor found for PMDParameters.RulePriorityConverter. Adding a default constructor fixes this.

You could argue this is a bug in JCommander, though - feel free to close here and open a bug there if you prefer :)

Related

Discussion: NullPointerException when using -property on the command line?

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-03-29

    Will be fixed with the next release.

     
  • Andreas Dangel

    Andreas Dangel - 2014-03-29
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-next
     

Log in to post a comment.