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:


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
Repository Root:
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(
at javax.swing.table.DefaultTableModel.getValueAt(
at javax.swing.JTable.getValueAt(
at org.openstreetmap.josm.gui.dialogs.RelationEditor$7.actionPerformed(
at javax.swing.AbstractButton.fireActionPerformed(
at javax.swing.AbstractButton$Handler.actionPerformed(
at javax.swing.DefaultButtonModel.fireActionPerformed(
at javax.swing.DefaultButtonModel.setPressed(
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
at java.awt.AWTEventMulticaster.mouseReleased(
at java.awt.Component.processMouseEvent(
at javax.swing.JComponent.processMouseEvent(
at java.awt.Component.processEvent(
at java.awt.Container.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.LightweightDispatcher.retargetMouseEvent(
at java.awt.LightweightDispatcher.processMouseEvent(
at java.awt.LightweightDispatcher.dispatchEvent(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(

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
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.