Modify

Opened 16 years ago

Closed 15 years ago

#3275 closed defect (fixed)

Exception when number of values and display_values don't match

Reported by: mjulius Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

When in a combo element there are fewer items in "display_values" than in "values" JOSM creates an exception. See below.

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1979
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1979
Last Changed Date: 2009-08-13 20:39:03 +0200 (Thu, 13 Aug 2009)

Memory Usage: 254 MB / 254 MB (63 MB allocated, but free)
Java version: 1.6.0_02

Plugins: buildings_tools
slippymap
utilsplugin
validator
wmsplugin
Plugin buildings_tools Version: 20
Plugin slippymap Version: 16805
Plugin utilsplugin Version: 16735
Plugin validator Version: 16788
Plugin wmsplugin Version: 16872

java.lang.ArrayIndexOutOfBoundsException: 2

at org.openstreetmap.josm.gui.tagging.TaggingPreset$Combo.addToPanel(TaggingPreset.java:308)
at org.openstreetmap.josm.gui.tagging.TaggingPreset.createPanel(TaggingPreset.java:651)
at org.openstreetmap.josm.gui.tagging.TaggingPreset.actionPerformed(TaggingPreset.java:664)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (1)

comment:1 by jttt, 15 years ago

Resolution: fixed
Status: newclosed

(In [2905]) Fixed #3275 Exception when number of values and display_values don't match

Modify Ticket

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