Error when loading GPX file with single point and track dynamic track coloring
What steps will reproduce the problem?
- Start JOSM with a new profile
- Activate "Expert mode" in settings
- Set Track and point coloring to "Velocity"
- Activate "Dynamic color range"
- Open GPX with a single point
What is the expected result?
Single point should be shown
What happens instead?
Unexpected exception
This problem does not only occur in "latest" but also in "tested".
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<gpx version="1.1">
<trk>
<trkseg>
<trkpt lat="48.1386" lon="11.573"/>
</trkseg>
</trk>
</gpx>
URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2016-01-07 03:14:25 +0100 (Thu, 07 Jan 2016)
Build-Date:2016-01-07 02:34:00
Revision:9336
Relative:URL: ^/trunk
Identification: JOSM/1.5 (9336 en) Linux Ubuntu 14.04.3 LTS
Memory Usage: 266 MB / 876 MB (171 MB allocated, but free)
Java version: 1.8.0_72-internal-b05, Oracle Corporation, OpenJDK 64-Bit Server VM
Last errors/warnings:
- E: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
- E: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:653)
at java.util.ArrayList.get(ArrayList.java:429)
at org.openstreetmap.josm.gui.layer.gpx.GpxDrawHelper.calculateColors(GpxDrawHelper.java:254)
at org.openstreetmap.josm.gui.layer.gpx.GpxDrawHelper.drawAll(GpxDrawHelper.java:201)
at org.openstreetmap.josm.gui.layer.GpxLayer.paint(GpxLayer.java:280)
at org.openstreetmap.josm.gui.MapView.paintLayer(MapView.java:638)
at org.openstreetmap.josm.gui.MapView.paint(MapView.java:706)
at javax.swing.JComponent.paintChildren(JComponent.java:889)
at javax.swing.JComponent.paint(JComponent.java:1065)
at javax.swing.JComponent.paintToOffscreen(JComponent.java:5210)
at javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:290)
at javax.swing.RepaintManager.paint(RepaintManager.java:1272)
at javax.swing.JComponent._paintImmediately(JComponent.java:5158)
at javax.swing.JComponent.paintImmediately(JComponent.java:4969)
at javax.swing.RepaintManager$4.run(RepaintManager.java:831)
at javax.swing.RepaintManager$4.run(RepaintManager.java:814)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738)
at javax.swing.RepaintManager.access$1200(RepaintManager.java:64)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732)
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)
Change History
(7)
Description: |
modified (diff)
|
Keywords: |
gpx color velocity added
|
Milestone: |
→ 16.02
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Description: |
modified (diff)
|
Keywords: |
regression added; gpx color velocity removed
|
Keywords: |
gpx color velocity added
|
Description: |
modified (diff)
|
In 9338/josm: