﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7885	Bug at create new relation	nzara	team	"What steps will reproduce the problem?
 1. Select some ways
 2. Choose: Presets:Relation:Polygon
 3. Click 'Add all Objects selected in the current dataset after the last element'

What is the expected result?

What happens instead?
Bug message opens
Please provide any additional information below. Attach a screenshot if
possible.

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-07-03 01:31:22
Last Changed Author: simon04
Revision: 5315
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-07-02 14:51:19 +0200 (Mon, 02 Jul 2012)
Last Changed Rev: 5315

Identification: JOSM/1.5 (5315 en)
Memory Usage: 427 MB / 455 MB (120 MB allocated, but free)
Java version: 1.7.0_05, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Operating system: Windows 7
Dataset consistency test: No problems found

Plugin: DirectDownload (28412)
Plugin: DirectUpload (28412)
Plugin: ImportImagePlugin (28412)
Plugin: InfoMode (27981)
Plugin: PicLayer (27883)
Plugin: alignways (28412)
Plugin: buildings_tools (28412)
Plugin: editgpx (28412)
Plugin: imageryadjust (28412)
Plugin: measurement (28412)
Plugin: multipoly-convert (28412)
Plugin: pdfimport (28448)
Plugin: proj4j (28412)
Plugin: public_transport (28412)
Plugin: reltoolbox (28412)
Plugin: tag2link (28412)
Plugin: tageditor (28412)
Plugin: utilsplugin2 (28412)
Plugin: wikipedia (28488)

java.lang.IndexOutOfBoundsException: Index: 39, Size: 39
	at java.util.ArrayList.rangeCheck(Unknown Source)
	at java.util.ArrayList.get(Unknown Source)
	at org.openstreetmap.josm.gui.dialogs.relation.MemberTableModel.updateRole(MemberTableModel.java:441)
	at org.openstreetmap.josm.gui.dialogs.relation.GenericRelationEditor$SetRoleAction.actionPerformed(GenericRelationEditor.java:1537)
	at javax.swing.AbstractButton.fireActionPerform
}}}
"	defect	new	normal		Core			template_report	
