Modify

Opened 17 years ago

Closed 16 years ago

#350 closed defect (fixed)

edit relation dialog exceptions if no member selected

Reported by: anonymous Owned by: josm@…
Priority: major Milestone:
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 (1)

DelRelationMembers.diff (1.0 KB ) - added by tom_evans_a@… 16 years ago.
Deletes any number of selected members (including 0!), so also fixes #521.

Download all attachments as: .zip

Change History (3)

comment:1 by anonymous, 17 years ago

Priority: minormajor

Confirming that delete still triggers exception - r381

by tom_evans_a@…, 16 years ago

Attachment: DelRelationMembers.diff added

Deletes any number of selected members (including 0!), so also fixes #521.

comment:2 by tom_evans_a@…, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in r565

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain josm@….
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.