﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
10553	ArrayIndexOutOfBoundsException while trying extrusion (rectangle tool)	Kilkenni	team	"What steps will reproduce the problem?
 1. Take a rectangle
 2. Create an isosceles trapezium with two sides having an angle of 30 degrees to the rectangle and the other two sides parallel to the rectangle (to the one of its sides)
 3. Merge these two polygons so the trapezium seems ""extruded"" from the (side of the) rectangle
 4. Try using extrusion (rectangle tool) on the side of the trapezium which is parallel to the rectangle

What is the expected result?

- Extrusion of the chosen side of the trapezium (parallel to its current position)

What happens instead?

- JOSM error. Perhaps JOSM is having difficulties determining at which angle exactly should an extruding side be moved.

Please provide any additional information below. Attach a screenshot if possible:

[[Image(extrusion.png)]]

{{{
Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2014-08-31 21:55:55
Last Changed Author: Don-vip
Revision: 7480
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2014-08-31 23:51:24 +0200 (Sun, 31 Aug 2014)
Last Changed Rev: 7480

Identification: JOSM/1.5 (7480 ru) Windows 7 64-Bit
Memory Usage: 264 MB / 1820 MB (84 MB allocated, but free)
Java version: 1.7.0_67, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Dataset consistency test: No problems found

Plugins:
- DirectUpload (30416)
- HouseNumberTaggingTool (30416)
- OpeningHoursEditor (30609)
- TombPlugin (44)
- alignways (30631)
- buildings_tools (30485)
- contourmerge (1010)
- download_along (30416)
- editgpx (30634)
- geochat (30513)
- graphview (30416)
- imagery_offset_db (30534)
- log4j (30416)
- mirrored_download (30495)
- public_transport (30416)
- tagging-preset-tester (30592)
- turnlanes (30416)
- turnrestrictions (30651)
- utilsplugin2 (30460)
- wikipedia (30449)

Last errors/warnings:
- E: Не удалось найти изображение «tunnel.png»
- W: Could not get presets icon tunnel.png
- W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.UnconnectedWays$UnconnectedHighways@94d71d05, code=1301]
- W: Unable to remove primitives from TestError [tester=org.openstreetmap.josm.data.validation.tests.UnconnectedWays$UnconnectedHighways@94d71d05, code=1301]
- E: java.lang.ArrayIndexOutOfBoundsException: 14

java.lang.ArrayIndexOutOfBoundsException: 14
	at org.openstreetmap.josm.data.osm.Way.getNode(Way.java:134)
	at org.openstreetmap.josm.data.osm.WaySegment.getFirstNode(WaySegment.java:37)
	at org.openstreetmap.josm.actions.mapmode.ExtrudeAction.performExtrusion(ExtrudeAction.java:626)
	at org.openstreetmap.josm.actions.mapmode.ExtrudeAction.mouseReleased(ExtrudeAction.java:533)
	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$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$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)

}}}
"	defect	closed	normal		Core	tested	worksforme	template_report	
