Menu

#1121 NullPointerException when invoking XPathCLI

PMD-5.1.0
closed
None
PMD
3-Major
Bug
2013-10-11
2013-08-13
Leo
No

Run this command, I get NPE
java net.sourceforge.pmd.cli.XPathCLI -xpath "//FieldDeclaration" -filename "./Test1.java"

Exception in thread "main" java.lang.NullPointerException
at net.sourceforge.pmd.RuleChain.getRuleChainVisitor(RuleChain.java:71)
at net.sourceforge.pmd.RuleChain.add(RuleChain.java:43)
at net.sourceforge.pmd.RuleChain.add(RuleChain.java:30)
at net.sourceforge.pmd.RuleSets.addRuleSet(RuleSets.java:55)
at net.sourceforge.pmd.RuleSets.<init>(RuleSets.java:43)
at net.sourceforge.pmd.cli.XPathCLI.main(XPathCLI.java:47)

Discussion

  • Andreas Dangel

    Andreas Dangel - 2013-10-11
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
    
     Run this command, I get NPE
     java net.sourceforge.pmd.cli.XPathCLI -xpath "//FieldDeclaration" -filename "./Test1.java" 
    
    • status: open --> closed
    • assigned_to: Andreas Dangel
    • Milestone: PMD-5.0.x --> PMD-5.1.0
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.