Opened 11 years ago

Last modified 3 years ago

#7869 new defect

delete while edit tag dialog opens results in unhandled exception

Reported by: dieterdreist Owned by: team
Priority: normal Milestone:
Component: Core Version: latest
Keywords: Cc:


I clicked on "edit tag" and while the dialogue was opening hit d (because it is the first letter of what I wanted to put into the tag). This resulted in an unhandled exception (I was too fast, so the node was deleted before the dialog to edit the tag of the node had opened):

Repository Root:
Build-Date: 2012-07-15 01:31:12
Last Changed Author: bastiK
Revision: 5341
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Date: 2012-07-14 20:23:00 +0200 (Sat, 14 Jul 2012)
Last Changed Rev: 5341

Identification: JOSM/1.5 (5341 en)
Memory Usage: 963 MB / 989 MB (236 MB allocated, but free)
Java version: 1.6.0_26, Sun Microsystems Inc., Java HotSpot(TM) Client VM
Operating system: Linux
Dataset consistency test: No problems found

Plugin: ImportImagePlugin (28412)
Plugin: OpeningHoursEditor (28477)
Plugin: PicLayer (27883)
Plugin: buildings_tools (28412)
Plugin: dataimport (28412)
Plugin: editgpx (28412)
Plugin: licensechange (28412)
Plugin: measurement (28412)
Plugin: multipoly-convert (28412)
Plugin: osmarender (28412)
Plugin: pdfimport (28448)
Plugin: photo_geotagging (28412)
Plugin: public_transport (28412)
Plugin: restart (28438)
Plugin: reverter (28412)
Plugin: tagging-preset-tester (28412)
Plugin: terracer (28412)
Plugin: undelete (28416)
Plugin: utilsplugin2 (28412)

java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
	at java.util.Vector.elementAt(
	at javax.swing.table.DefaultTableModel.getValueAt(
	at java.awt.event.InvocationEvent.dispatch(
	at java.awt.EventQueue.dispatchEventImpl(
	at java.awt.EventQueue.access$000(
	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 (1)

comment:1 Changed 3 years ago by mdk

With version 15520 I could still reproduce this behavior. Actually delete has the HotKey "delete" instead of "d". But it's not easy to reproduce, but the detailed steps are:

  • select a way
  • select an attribute
  • hit the "Edit" Button for the attribute and simultaneous press the "delete" key on the keyboard
    • Depending on the timing, you could get different results:
    • The way still exists, the attribute is deleted, the editor dialog is opend (with the deleted key and value) - not interesting, try again
    • The way still exists, the attribute still exists, the editor dialog is opend, the value is cleard - not interesting, try again
    • The way is deleted and the editor is opend for the attribute of the deleted way (with old key and value) - bingo!
      • Now edit the value and press "ok" -> you get this exception:
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-11-06 07:17:52 +0100 (Wed, 06 Nov 2019)
Build-Date:2019-11-07 02:30:54

Identification: JOSM/1.5 (15520 en) Linux Ubuntu 19.10
Memory Usage: 399 MB / 1980 MB (188 MB allocated, but free)
Java version: 11.0.5-ea+10-post-Ubuntu-0ubuntu1, Ubuntu, OpenJDK 64-Bit Server VM
Screen: :0.0 1920x1080
Maximum Screen Size: 1920x1080
Java package: openjdk-11-jre:amd64-11.0.5+10-0ubuntu1
Java ATK Wrapper package: libatk-wrapper-java:all-0.35.0-3
libcommons-compress-java: libcommons-compress-java:all-1.18-3
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:-
VM arguments: [-Djosm.restart=true,,]
Dataset consistency test: No problems found

+ ColumbusCSV (34985)
+ FastDraw (34977)
+ HouseNumberTaggingTool (34977)
+ OpeningHoursEditor (34977)
+ RoadSigns (UNKNOWN)
+ SimplifyArea (34977)
+ buildings_tools (35171)
+ contourmerge (v0.1.5)
+ imagery-xml-bounds (35100)
+ imagery_offset_db (34908)
+ pbf (35033)
+ poly (34991)
+ public_transport (35221)
+ reltoolbox (35196)
+ reverter (35226)
+ terracer (34977)
+ turnrestrictions (34977)
+ utilsplugin2 (35177)
+ wikipedia (1.1.2)

Tagging presets:

Map paint styles:

Last errors/warnings:
- W: No configuration settings found.  Using hardcoded default values for all pools.
- E: Handled by bug report queue: java.util.NoSuchElementException

No data collected.

Warning issued by: BugReportExceptionHandler#handleException

Thread: AWT-EventQueue-0 (18) of main
	at org.openstreetmap.josm.command.ChangePropertyCommand.<init>(
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(
	at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(
	at java.desktop/java.awt.Component.processMouseEvent(
	at java.desktop/javax.swing.JComponent.processMouseEvent(
	at java.desktop/java.awt.Component.processEvent(
	at java.desktop/java.awt.Container.processEvent(
	at java.desktop/java.awt.Component.dispatchEventImpl(
	at java.desktop/java.awt.Container.dispatchEventImpl(
	at java.desktop/java.awt.Component.dispatchEvent(
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(
	at java.desktop/java.awt.Container.dispatchEventImpl(
	at java.desktop/java.awt.Window.dispatchEventImpl(
	at java.desktop/java.awt.Component.dispatchEvent(
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(
	at java.desktop/java.awt.EventQueue$
	at java.desktop/java.awt.EventQueue$
	at java.base/ Method)
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/java.awt.EventQueue$
	at java.desktop/java.awt.EventQueue$
	at java.base/ Method)
	at java.base/$JavaSecurityAccessImpl.doIntersectionPrivilege(
	at java.desktop/java.awt.EventQueue.dispatchEvent(
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(
	at java.desktop/

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to dieterdreist
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.