#109 NullPointerException in array check

release_3.2
closed
Oliver Burn
5
2012-10-10
2003-05-30
Andreas Holzmann
No

I get a NullPointerException with the attached files.
It seems to
be a problem with the parsing of "if (value instanceof
byte[])"

> java -jar
~/Software/checkstyle-3.1/checkstyle-all-3.1.jar -c
c.xml Tags.java

Starting audit...
Tags.java:0: Got an exception -
java.lang.NullPointerException
Audit done.

Discussion

  • Sample java source

     
    Attachments
  • sample configuration file

     
    Attachments
  • Logged In: YES
    user_id=746148

    Looks like this is a duplicate of [ 744573 ] NPE when running ArrayTypeStyle check.
    I've verified that in current developer's version reported problem is fixed.