Help save net neutrality! Learn more.
Close

#85 NPE for logfile without revisions

Latest release
closed-fixed
nobody
5
2009-08-22
2007-05-02
No

Using the ANT-task of release 0.3 I get a NPE with a logfile with no changes (revisions) in. Background: To reduce the size and runtime of the statcvs report I limit the cvs log with '-d>2007-04-02' (as an example) to the past i.e. 30 days. When a project becomes no changes in this period, statcvs generates a NPE. In the attached zip you will find to logfiles:
- cvs_ok.log - works fine.
- cvs_nok.log - produces a NPE.

Discussion

  • Roland Gisler

    Roland Gisler - 2007-05-02
     
  • axelmang

    axelmang - 2008-09-28

    Hi,

    I get the same error when there are no revisions in the log file. Is this feature planned to be fixed? I think that there is no need to attach logs since they are similar to the ones attached by rgisler.

    thanx
    /axelmang - axelmangr@freemail.gr

     
  • Benoit Xhenseval

    Could you attach a stack trace with the NPE please?
    Thanks

    Benoit

     
  • axelmang

    axelmang - 2008-10-01

    plz find below the exception

    xception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at net.sf.statcvs.input.FileBuilder.buildBeginOfLogRevision(FileBuilder.java:308)
    at net.sf.statcvs.input.FileBuilder.createFile(FileBuilder.java:133)
    at net.sf.statcvs.input.Builder.createCvsContent(Builder.java:165)
    at org.am.snitch.utilities.CVSLogParser.parseCVSLog(CVSLogParser.java:88)
    at org.am.snitch.gui.SnitchPanel.snitchThem(SnitchPanel.java:208)
    at org.am.snitch.gui.SnitchPanel.actionPerformed(SnitchPanel.java:131)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
    at java.awt.Component.processMouseEvent(Component.java:5517)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    at java.awt.Component.processEvent(Component.java:5282)
    at java.awt.Container.processEvent(Container.java:1966)
    at java.awt.Component.dispatchEventImpl(Component.java:3984)
    at java.awt.Container.dispatchEventImpl(Container.java:2024)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.java:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1791)
    at java.awt.Component.dispatchEvent(Component.java:3819)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

    thanx for the quick response
    /axelmang - axelmangr@freemail.gr

     
  • axelmang

    axelmang - 2008-10-10

    Any update on this?

    thanx
    /axel

     
  • Benoit Xhenseval

    • status: open --> closed-fixed