What steps will reproduce the problem?
Run FindBugs GUI on the "mail" module of Project GlassFish (http://glassfish.dev.java.net). I don't remember everything I did to get into this situation.
What is the expected output? What do you see instead?
I got this exception when trying to save the project:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at
edu.umd.cs.findbugs.SortedBugCollection.writePrologue(SortedBugCollection.java:279)
at
edu.umd.cs.findbugs.SortedBugCollection.writeXML(SortedBugCollection.java:328)
at
edu.umd.cs.findbugs.SortedBugCollection.writeXML(SortedBugCollection.java:265)
at edu.umd.cs.findbugs.gui2.BugSaver.saveBugs(BugSaver.java:53)
at edu.umd.cs.findbugs.gui2.BugSaver.saveBugs(BugSaver.java:63)
at edu.umd.cs.findbugs.gui2.MainFrame.save(MainFrame.java:1930)
at edu.umd.cs.findbugs.gui2.MainFrame.access$1300(MainFrame.java:127)
at
edu.umd.cs.findbugs.gui2.MainFrame$12.actionPerformed(MainFrame.java:611)
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.AbstractButton.doClick(AbstractButton.java:302)
at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
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:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
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)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at
edu.umd.cs.findbugs.SortedBugCollection.writePrologue(SortedBugCollection.java:279)
at
edu.umd.cs.findbugs.SortedBugCollection.writeXML(SortedBugCollection.java:328)
at
edu.umd.cs.findbugs.SortedBugCollection.writeXML(SortedBugCollection.java:265)
at edu.umd.cs.findbugs.gui2.BugSaver.saveBugs(BugSaver.java:53)
at edu.umd.cs.findbugs.gui2.BugSaver.saveBugs(BugSaver.java:63)
at edu.umd.cs.findbugs.gui2.MainFrame.save(MainFrame.java:1930)
at edu.umd.cs.findbugs.gui2.MainFrame.access$1300(MainFrame.java:127)
at
edu.umd.cs.findbugs.gui2.MainFrame$12.actionPerformed(MainFrame.java:611)
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.AbstractButton.doClick(AbstractButton.java:302)
at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5488)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
at java.awt.Component.processEvent(Component.java:5253)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3955)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
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:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
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)
What version of the product are you using? On what operating system?
FindBugs 1.1.1, JDK 1.5.0_07, Solaris 10
Please provide any additional information below.
Comment #1
Posted on Dec 6, 2006 by Massive CatI can't figure out how this could happen (the project being null at this point). I've put in a stop gap measure that will create a project if the project is null when the bugs are saved, but will also print out a warning msg to see if we can get this down to something I can reproduce.
Comment #2
Posted on Nov 23, 2011 by Quick ElephantThanks for the report, but please report this bug at sourceforge bug tracker again. This tracker is not used / monitored.
Status: Invalid
Labels:
Type-Defect
Priority-Medium