#45 NullPointerException in 'Lines of Code' chart generation

closed
StatCVS (4)
5
2007-01-29
2007-01-28
JPS
No

When I want to use StatSVN on our project there occured the following error:
Parsing SVN log './logfile.log'
Scheduled 0 svn diff calls on 0 threads.
Generating report for /trunk into ../neco/
Using default CSS file (statcvs.css)
writing chart 'Lines of Code and Churn Level' to locandchurn.png
Creating CSS file at '../neco/statcvs.css'
writing chart 'Activity by Hour of Day' to activity_time.png
writing chart 'Activity by Day of Week' to activity_day.png
writing chart 'Commit Activity' to commitscatterauthors.png
writing chart 'Author Activity' to activity.png
writing chart 'Lines of Code' to loc.png
Exception in thread "main" java.lang.NullPointerException
at net.sf.statcvs.pages.Page.add(Page.java:160)
at net.sf.statcvs.pages.FileSizesPageMaker.toFile(FileSizesPageMaker.java:53)
at net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:80)
at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:295)
at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:227)
at net.sf.statsvn.Main.generate(Main.java:112)
at net.sf.statsvn.Main.main(Main.java:83)

I know that project is "non-standard" but probably error shouldn't occur.

Discussion

  • JPS
    JPS
    2007-01-28

    log file

     
    Attachments
  • Logged In: YES
    user_id=358115
    Originator: NO

    When you run a statsvn with the "-dump" what do you get?
    Could you record that output and post it here?
    Thanks
    Benoit

     
  • JPS
    JPS
    2007-01-29

    Output with -dump option.

     
    Attachments
  • JPS
    JPS
    2007-01-29

    Logged In: YES
    user_id=1522978
    Originator: YES

    File Added: dump_output.zip

     
  • Logged In: YES
    user_id=358115
    Originator: NO

    Hi

    I believe that the issue is in StatCVS. I will raise it with the development team.
    Have you added files since having faced your issue? Would you mind retrying?

    TimeLineChartMaker toFile returns null when timeLine.isEmpty(). Which would be on first check in I guess.
    but then Page.add(...chart) will simply assume that chart is never null.

    Hope this helps
    Benoit

     
    • labels: 840555 --> StatCVS
    • assigned_to: nobody --> benoitx
    • status: open --> closed