Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12488 closed defect (fixed)

ArrayIndexOutOfBoundsException while copying tags from previous selection of multi-polygon building to another

Reported by: chetanha91@… Owned by: chetanha91@…
Priority: normal Milestone: 16.02
Component: Core Version: latest
Keywords: copying tags Cc: kocio

Description

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-01-06 17:30:31 +0100 (Wed, 06 Jan 2016)
Build-Date:2016-01-06 16:32:31
Revision:9329
Relative:URL: ^/trunk

Identification: JOSM/1.5 (9329 en) Mac OS X 10.11.3
Memory Usage: 727 MB / 910 MB (304 MB allocated, but free)
Java version: 1.8.0_66, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
VM arguments: [-Djava.library.path=/Users/chethanha/Downloads/josm-macosx 2/JOSM.app/Contents/MacOS, -DLibraryDirectory=/Users/chethanha/Library, -DDocumentsDirectory=/Users/chethanha/Documents, -DApplicationSupportDirectory=/Users/chethanha/Library/Application Support, -DCachesDirectory=/Users/chethanha/Library/Caches, -DSandboxEnabled=false, -Dapple.laf.useScreenMenuBar=true, -Dcom.apple.macos.use-file-dialog-packages=true, -Dcom.apple.macos.useScreenMenuBar=true, -Dcom.apple.mrj.application.apple.menu.about.name=JOSM, -Dcom.apple.smallTabs=true]
Dataset consistency test: No problems found

Plugins:
- BuildingGeneralization (UNKNOWN)
- FastDraw (31895)
- Mapillary (31976)
- PicLayer (31895)
- apache-commons (31895)
- apache-http (31895)
- buildings_tools (31895)
- download_along (31772)
- geochat (31895)
- reltoolbox (31895)
- todo (29154)
- turnlanes (31772)
- undelete (31895)
- utilsplugin2 (32018)

Last errors/warnings:
- E: java.lang.ArrayIndexOutOfBoundsException: 0
- E: java.lang.ArrayIndexOutOfBoundsException: 0
- E: java.lang.ArrayIndexOutOfBoundsException: 0
- E: java.lang.ArrayIndexOutOfBoundsException: 0
- E: java.lang.ArrayIndexOutOfBoundsException: 0

java.lang.ArrayIndexOutOfBoundsException: 0
	at javax.swing.DefaultRowSorter.convertRowIndexToModel(DefaultRowSorter.java:518)
	at javax.swing.JTable.convertRowIndexToModel(JTable.java:2642)
	at org.openstreetmap.josm.gui.dialogs.properties.TagEditHelper.getDataKey(TagEditHelper.java:128)
	at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog.selectionChanged(PropertiesDialog.java:642)
	at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog.updateSelection(PropertiesDialog.java:577)
	at org.openstreetmap.josm.gui.dialogs.properties.PropertiesDialog.processDatasetEvent(PropertiesDialog.java:779)
	at org.openstreetmap.josm.data.osm.event.DataSetListenerAdapter.dataChanged(DataSetListenerAdapter.java:24)
	at org.openstreetmap.josm.data.osm.event.DataChangedEvent.fire(DataChangedEvent.java:26)
	at org.openstreetmap.josm.data.osm.event.DatasetEventManager.fireConsolidatedEvents(DatasetEventManager.java:193)
	at org.openstreetmap.josm.data.osm.event.DatasetEventManager.access$300(DatasetEventManager.java:27)
	at org.openstreetmap.josm.data.osm.event.DatasetEventManager$EdtRunnable.run(DatasetEventManager.java:86)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Attachments (0)

Change History (11)

comment:1 by simon04, 8 years ago

Milestone: 16.02
Owner: changed from team to chetanha91@…
Status: newneedinfo

Same as in #12488

What have you been doing? How to reproduce?

in reply to:  1 comment:2 by Don-vip, 8 years ago

Replying to simon04:

Same as in #12488

#12346 you mean?

comment:3 by Don-vip, 8 years ago

Summary: I encountered this error while copying tags from previous selection of multi-polygon building to another.ArrayIndexOutOfBoundsException while copying tags from previous selection of multi-polygon building to another

comment:4 by Don-vip, 8 years ago

Ticket #12520 has been marked as a duplicate of this ticket.

comment:5 by Don-vip, 8 years ago

Cc: kocio added

@kocio: can you please detail the steps you did to have this error? Can you reproduce with JOSM latest?

comment:6 by kocio, 8 years ago

I did it in #12520:

What steps will reproduce the problem?

Fill the tag filter with some letters
Try to add new tag manually

It is a problem in 9329, but also in 9794 (Java 8 too, but no plugins).

Looking closer I see that as long as the current tags are visible (filter matches it), the dialog appears. So it looks like more tricky problem than just "tag filter doesn't allow tag dialog to appear".

comment:7 by kocio, 8 years ago

The same for latest version 9805. The problem exists if the filter string doesn't much _all_ of the tags, for example object tagged with:

a=b
b=c

if you put "b" in the filter, it works as expected (because "b" is in both tags), but if you filter "c" (which doesn't match "a=b" expression), the bug appears.

comment:8 by kocio, 8 years ago

Still no change with 9819.

comment:9 by simon04, 8 years ago

Resolution: fixed
Status: needinfoclosed

In 9877/josm:

fix #12488 - Fix ArrayIndexOutOfBoundsException when using tag filter in properties dialog

comment:10 by Don-vip, 8 years ago

In 9894/josm:

see #12488 - fix coverity 1352298 - 1352299

comment:11 by anonymous, 8 years ago

Works ow in 9895.

Modify Ticket

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