#301 AbstractUsageCheck throws NPE

release_4.0
closed
None
5
2012-10-10
2005-03-18
No

It throws NPE when a file is entirely commented
although javac causes no error...
How to reproduce :
Create a file
-- test.java --
// This is comment
-- test.java--
Run any usagecheck
It throws NPE

Discussion

  • Logged In: YES
    user_id=1195734

    In fact, it is private void addToCompleteTree(File
    aFile, AST aAST)
    from ASTManager which is buggy (line 135)

     
  • Logged In: YES
    user_id=746148

    The fix committed to CVS for 4.0