Opened 8 years ago

Closed 8 years ago

#12008 closed defect (fixed)

java.lang.IndexOutOfBoundsException when editing a restaurant through a template

Reported by: anonymous Owned by: Don-vip
Priority: normal Milestone: 15.10
Component: Core Version: latest
Keywords: template_report regression Cc:


What steps will reproduce the problem?

Not sure, I have tried to edit an existing fast food restaurant using a template. Maybe the issue was caused by me trying to change the cuisine.

Please provide any additional information below. Attach a screenshot if possible.

Repository Root:
Build-Date: 2015-10-25 03:52:04
Last Changed Author: Don-vip
Revision: 8944
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
Last Changed Date: 2015-10-25 04:46:01 +0100 (Sun, 25 Oct 2015)
Last Changed Rev: 8944

Identification: JOSM/1.5 (8944 de) Linux Ubuntu 14.04.3 LTS
Memory Usage: 623 MB / 1776 MB (513 MB allocated, but free)
Java version: 1.7.0_79, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u79-2.5.6-0ubuntu1.14.04.1
Dataset consistency test: No problems found

- measurement (31648)

Last errors/warnings:
- E: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.LinkedList.checkElementIndex(
	at java.util.LinkedList.get(
	at org.openstreetmap.josm.command.ChangePropertyCommand.executeCommand(
	at org.openstreetmap.josm.command.SequenceCommand.executeCommand(
	at org.openstreetmap.josm.gui.tagging.presets.TaggingPreset.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.AbstractButton.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.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.dispatchEventImpl(
	at java.awt.EventQueue.access$300(
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue$
	at java.awt.EventQueue$
	at Method)
	at java.awt.EventQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(

Attachments (0)

Change History (2)

comment:1 by Don-vip, 8 years ago

Keywords: regression added
Milestone: 15.10
Owner: changed from team to Don-vip
Status: newassigned

comment:2 by Don-vip, 8 years ago

Resolution: fixed
Status: assignedclosed

In 8945/josm:

fix #12008 - do not create empty commands from tagging preset dialog + add robustness

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Don-vip.
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.