Modify

Opened 12 years ago

Closed 12 years ago

#7268 closed defect (fixed)

IndexOutOfBoundsException problem in the "History" window

Reported by: rickmastfan67 Owned by: team
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

Steps to reproduce:

  1. Download some data from the OSM server.
  2. Select any way or node in the downloaded area.
  3. Hit "Ctrl+H" to bring up the History window for the way/node you selected.
  4. Once the history window has loaded with the way/node's history, right click anywhere there is text (excluding the column names) in the left part of the window and hold the right click and drag to the empty space below the date/user (or any other column in that section, doesn't matter) and then release the right click.

Expected results:
Absolutely nothing should happen since you aren't releasing the right click action over any of the lines that link to a changeset.

What happens:
An "Unexpected Exception".

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2012-01-14 02:31:47
Last Changed Author: simon04
Revision: 4789
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2012-01-13 13:41:48 +0100 (Fri, 13 Jan 2012)
Last Changed Rev: 4789

Identification: JOSM/1.5 (4789 en)
Memory Usage: 113 MB / 2730 MB (42 MB allocated, but free)
Java version: 1.6.0_30, Sun Microsystems Inc., Java HotSpot(TM) 64-Bit Server VM
Operating system: Windows 7
Dataset consistency test: No problems found

Plugin: OpeningHoursEditor (27355)
Plugin: buildings_tools (27355)
Plugin: imageryadjust (27355)
Plugin: licensechange (27400)
Plugin: mapdust (27355)
Plugin: measurement (27289)
Plugin: openstreetbugs (27355)
Plugin: restart (27289)
Plugin: reverter (27393)
Plugin: turnlanes (27355)
Plugin: turnrestrictions (27355)
Plugin: undelete (27395)
Plugin: utilsplugin2 (27421)

java.lang.IndexOutOfBoundsException: Parameter 'idx' in range 0..5 expected. Got '-1'.
	at org.openstreetmap.josm.data.osm.history.History.get(History.java:206)
	at org.openstreetmap.josm.gui.history.HistoryBrowserModel$VersionTableModel.getPrimitive(HistoryBrowserModel.java:519)
	at org.openstreetmap.josm.gui.history.VersionTable.showPopupMenu(VersionTable.java:93)
	at org.openstreetmap.josm.gui.history.VersionTable$PopupMenuTrigger.showPopup(VersionTable.java:110)
	at org.openstreetmap.josm.gui.history.VersionTable$PopupMenuTrigger.mouseReleased(VersionTable.java:106)
	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.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$000(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.awt.EventQueue$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(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)

I'm marking this as minor since it doesn't seem to effect any work you're doing and you can continue on without any problems.

Attachments (0)

Change History (1)

comment:1 by Don-vip, 12 years ago

Resolution: fixed
Status: newclosed

In [4862/josm]:

fix #7268 - IndexOutOfBoundsException problem in the "History" window

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.