Menu

#76 Empty repository cause NullPointerException

open
nobody
None
3
2008-04-02
2008-04-02
No

When I was writing test for bug 1874974 I found another problem.

Generating statistics from empty repository causes NullPointerException.

Exception in thread "main" java.lang.NullPointerException
at gnu.xml.transform.TransformerImpl.transform(libgcj.so.81)
at net.sf.statsvn.util.XMLUtil.writeXmlFile(XMLUtil.java:140)
at net.sf.statsvn.input.SvnLogfileParser.handleLineCounts(SvnLogfileParser.java:207)
at net.sf.statsvn.input.SvnLogfileParser.parse(SvnLogfileParser.java:343)
at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:272)
at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:234)
at net.sf.statsvn.Main.generate(Main.java:115)
at net.sf.statsvn.Main.main(Main.java:81)

Discussion

  • Martin Majliš

    Martin Majliš - 2008-04-02
    • priority: 5 --> 3
     
  • Martin Majliš

    Martin Majliš - 2008-04-02

    Test script

     
  • Martin Majliš

    Martin Majliš - 2008-04-02

    Logged In: YES
    user_id=1438730
    Originator: YES

    File Added: test-empty-repository.sh

     
  • Jason Kealey

    Jason Kealey - 2008-06-15

    Logged In: YES
    user_id=1498924
    Originator: NO

    I created a similar script on Windows and tried running it. I obtained:

    Parsing SVN log 'c:\temp\svn\test2\testcheckout\svn.log' exclude pattern 'null'
    Scheduled 0 svn diff calls on 0 threads.
    Generating report for into c:\temp\svn\test2\testcheckout\output\
    Using default CSS file (statcvs.css)
    The repository object is not valid. Please check your settings.
    Is the log file empty? Do you run from a checked out directory? Do you have non-committed items?

    We would need to have someone on Linux test it out... but I think the issue is with the XML transformation engine, and not StatSVN directly.

     

Log in to post a comment.

MongoDB Logo MongoDB