Ticket #350 (closed defect: fixed)
edit relation dialog exceptions if no member selected
| Reported by: | anonymous | Owned by: | josm@… |
|---|---|---|---|
| Priority: | major | Component: | Core |
| Version: | latest | Keywords: | relation dialog |
| Cc: |
Description
Show the relation window (Alt-N) Click the add relation button to show the "Edit Relation" dialog. Make sure no Members are selected and press the delete or select button to trigger the exception.
Path: josm URL: http://www.openstreetmap.de/svn/josm Repository Root: http://www.openstreetmap.de/svn/josm Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Revision: 345 Node Kind: directory Last Changed Author: framm Last Changed Rev: 345 Last Changed Date: 2007-10-07 14:24:11 +0200 (Sun, 07 Oct 2007)
java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.Vector.elementAt(Vector.java:435) at javax.swing.table.DefaultTableModel.getValueAt(DefaultTableModel.java:621) at javax.swing.JTable.getValueAt(JTable.java:1903) at org.openstreetmap.josm.gui.dialogs.RelationEditor$7.actionPerformed(RelationEditor.java:221) 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:5501) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5266) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3968) 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:1778) 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)
Attachments
Change History
Changed 4 years ago by tom_evans_a at yahoo co uk
- Attachment DelRelationMembers.diff added
Deletes any number of selected members (including 0!), so also fixes #521.



Confirming that delete still triggers exception - r381