Quantcast

[ checkstyle-Bugs-3470355 ] RegexpSinglelineJava module reports NullPointerException

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ checkstyle-Bugs-3470355 ] RegexpSinglelineJava module reports NullPointerException

SourceForge.net
Bugs item #3470355, was opened at 2012-01-06 08:48
Message generated for change (Tracker Item Submitted) made by efe4itcc
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=3470355&group_id=29721

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Framework
Group: release 5.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: efe4itcc (efe4itcc)
Assigned to: Oliver Burn (oburn)
Summary: RegexpSinglelineJava module reports NullPointerException

Initial Comment:
Tests Environnements under JDK Sun-1.6.0_24:
1/ Eclipse Helios + Eclispe-cs 5.5.0.201111092104
2/ Ant 1.8.2 +IVY-2.2.0 +checkstyle-5.4

When I enable RegexpSinglelineJava module, checkstyle result (Eclipse or ANT) reports an error on every java file with message:
TreeWalker: Got an exception - java.lang.NullPointerException

I tested with real java code or the following class with same results:

package fr.efe4it.ant.samples;

public class HelloWorld {
    public int returnUnAsInteger() {
        return 1;
    }
    public String returnUnAsString() {
        return "1";
    }
    public void sayHello(String who) {
        System.out.println("Hello " + who);
    }
}

I used a configuration derived from SunChecks, but the same result happen with only RegexpSinglelineJava i.e.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
  <module name="TreeWalker">
    <module name="RegexpSinglelineJava">
          <property name="ignoreComments" value="true"/>
    </module>
  </module>
</module>


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397078&aid=3470355&group_id=29721

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Checkstyle-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/checkstyle-devel
Loading...