NullPointerException when selecting "--Choose a Layout" in the Layout ComboBox

Bug #606964 reported by Paul-Antoine Bittner on 2010-07-18
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gephi
Fix Released
Medium
Mathieu Bastian
0.7
Fix Released
Medium
Unassigned

Bug Description

If you select a Layout in the Layout Panel and then select the item "--Choose a Layout", an Exception is fired:

java.lang.NullPointerException
 at org.gephi.layout.LayoutModelImpl.setSelectedLayout(LayoutModelImpl.java:97)
 at org.gephi.layout.LayoutControllerImpl.setLayout(LayoutControllerImpl.java:90)
 at org.gephi.desktop.layout.LayoutPanel.setSelectedLayout(LayoutPanel.java:233)
 at org.gephi.desktop.layout.LayoutPanel.access$300(LayoutPanel.java:55)
 at org.gephi.desktop.layout.LayoutPanel$1.itemStateChanged(LayoutPanel.java:75)
 at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1205)
 at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1253)
 at javax.swing.JComboBox.contentsChanged(JComboBox.java:1309)
 at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
 at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
 at javax.swing.JComboBox.setSelectedItem(JComboBox.java:557)
 at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:603)
 at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:817)
 at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
 at java.awt.Component.processMouseEvent(Component.java:6263)
 at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
 at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:481)
 at java.awt.Component.processEvent(Component.java:6028)
 at java.awt.Container.processEvent(Container.java:2041)
 at java.awt.Component.dispatchEventImpl(Component.java:4630)
 at java.awt.Container.dispatchEventImpl(Container.java:2099)
 at java.awt.Component.dispatchEvent(Component.java:4460)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
 at java.awt.Container.dispatchEventImpl(Container.java:2085)
 at java.awt.Component.dispatchEvent(Component.java:4460)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
 at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Fixed in rev 1601

Changed in gephi:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Mathieu Bastian (mathieu.bastian)
status: Confirmed → Fix Committed

Fixed in rev 1601.

Fixed in rev 1601

Changed in gephi:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers