#7118 closed defect (fixed)
Deleting a way in Draw mode leads to ArrayIndexOutOfBoundsException
| Reported by: | JanRomanCisowski@… | Owned by: | Don-vip |
|---|---|---|---|
| Priority: | normal | Component: | Core |
| Version: | Keywords: | template_report | |
| Cc: |
Description (last modified by Don-vip)
What steps will reproduce the problem?
- Download an existing way, not connected to another one
- Switch do Draw tool
- Click on the node at one of its extremities to extend it
- Press delete -> Error in loop
What is the expected result? Way is deleted without error
What happens instead? An error is displayed in loop
Please provide any additional information below. Attach a screenshot if
possible.
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2011-10-31 02:32:25 Last Changed Author: stoecker Revision: 4550 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2011-10-30 22:19:50 +0100 (Sun, 30 Oct 2011) Last Changed Rev: 4550 Identification: JOSM/1.5 (4550 pl) Memory Usage: 272 MB / 455 MB (145 MB allocated, but free) Java version: 1.7.0_01, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Operating system: Windows 7 Dataset consistency test: No problems found Plugin: openstreetbugs (26986) Plugin: turnrestrictions (26986) java.lang.ArrayIndexOutOfBoundsException: 0 at org.openstreetmap.josm.data.osm.Way.getNode(Way.java:113) at org.openstreetmap.josm.actions.mapmode.DrawAction.computeHelperLine(DrawAction.java:695) at org.openstreetmap.josm.actions.mapmode.DrawAction.mouseMoved(DrawAction.java:612) at java.awt.AWTEventMulticaster.mouseMoved(Unknown Source) at java.awt.Component.processMouseMotionEvent(Unknown Source) at javax.swing.JComponent.processMouseMotionEvent(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.Lightw
Attachments (0)
Change History (9)
comment:1 Changed 18 months ago by Don-vip
comment:2 Changed 18 months ago by skyper
- Owner changed from team to JanRomanCisowski@…
- Status changed from new to needinfo
Similar or same as #7062
comment:3 Changed 18 months ago by stoecker
Ticket #7062 has been marked as a duplicate of this ticket.
comment:4 Changed 18 months ago by Don-vip
Ticket #7125 has been marked as a duplicate of this ticket.
comment:5 Changed 18 months ago by Don-vip
Ok, I am able to reproduce it with both r4550 and r4642:
- Download an existing way, not connected to another one
- Switch do Draw tool
- Click on the node at one of its extremities to extend it
- Press delete -> Error in loop
Problem is: r4539 introduced a patch to auto-select the way in drawing mode. Using the Del key, the way is cleared but kept selected, causing this callback function to inspect an empty way, leading to this exception.
comment:6 Changed 18 months ago by Don-vip
- Description modified (diff)
- Owner changed from JanRomanCisowski@… to Don-vip
- Status changed from needinfo to assigned
- Summary changed from Jan Roman Cisowski to Deleting a way in Draw mode leads to ArrayIndexOutOfBoundsException
comment:7 Changed 18 months ago by Don-vip
- Resolution set to fixed
- Status changed from assigned to closed
In [4643/josm]:
comment:8 Changed 17 months ago by stoecker
Ticket #7134 has been marked as a duplicate of this ticket.
comment:9 Changed 17 months ago by Don-vip
Ticket #7149 has been marked as a duplicate of this ticket.



Can you explain what data were you using ? (and attach your .osm file, if possible)