#81 StatCVS crash on startup

closed-fixed
8
2007-03-19
2007-02-15
No

Current CVS-head version of StatCVS crashes on startup, it can't create the static "NO_BUG_TRACKER" instance:

[java] StatCVS - CVS statistics generation

[java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] at net.sf.statcvs.output.ConfigurationOptions.<clinit>(ConfigurationOptions.java:76)
[java] at net.sf.statcvs.output.CommandLineParser.parseSwitch(CommandLineParser.java:90)
[java] at net.sf.statcvs.output.CommandLineParser.parse(CommandLineParser.java:64)
[java] at net.sf.statcvs.Main.main(Main.java:74)
[java] Caused by: java.lang.NullPointerException
[java] at net.sf.statcvs.weblinks.bugs.BugTracker.<init>(BugTracker.java:44)
[java] at net.sf.statcvs.weblinks.bugs.BugTracker$1.<init>(BugTracker.java:31)
[java] at net.sf.statcvs.weblinks.bugs.BugTracker.<clinit>(BugTracker.java:24)
[java] ... 4 more
[java] Java Result: 1

Here's a proposed patch (diff -u):

Index: BugTracker.java

RCS file: /cvsroot/statcvs/statcvs/src/net/sf/statcvs/weblinks/bugs/BugTracker.java,v
retrieving revision 1.2
diff -u -r1.2 BugTracker.java
--- BugTracker.java 12 Jan 2007 16:57:53 -0000 1.2
+++ BugTracker.java 15 Feb 2007 15:32:36 -0000
@@ -21,7 +21,7 @@
/**
* A null object that can be used in place of a real bug tracker.
*/
- public static final BugTracker NO_BUG_TRACKER = new BugTracker(null) {
+ public static final BugTracker NO_BUG_TRACKER = new BugTracker("") {
public String bugURL(String bugNumber) {
return null;
}

Discussion

  • Jean-Philippe Daigle

    • priority: 5 --> 8
     
  • Richard Cyganiak

    • assigned_to: nobody --> cyganiak
    • status: open --> pending-fixed
     
  • Richard Cyganiak

    Logged In: YES
    user_id=584620
    Originator: NO

    Fixed. Thanks for the report, JP!

     
  • SourceForge Robot

    • status: pending-fixed --> closed-fixed
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 30 days (the time period specified by
    the administrator of this Tracker).

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks