Modify

Opened 15 years ago

Closed 15 years ago

#3287 closed defect (fixed)

link in gpx causes NullPointer Exception

Reported by: anonymous Owned by: team
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

"<link>20080614 203954.wav</link>" causes a NullPointer Exception. (it worked with older versions)

<wpt lat="51.76392000" lon="10.30243000">

<ele>504.00000000</ele>
<name>voice</name>
<time>2008-06-14T18:40.00Z</time>
<link>20080614 203954.wav</link>

</wpt>

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 1979
Node Kind: directory
Last Changed Author: stoecker
Last Changed Rev: 1979
Last Changed Date: 2009-08-13 20:39:03 +0200 (Thu, 13 Aug 2009)

Memory Usage: 158 MB / 1016 MB (64 MB allocated, but free)
Java version: 1.6.0_16

Plugins: wmsplugin
Plugin wmsplugin Version: 16872

java.lang.NullPointerException

at org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer.<init>(MarkerLayer.java:88)
at org.openstreetmap.josm.io.GpxImporter.importData(GpxImporter.java:51)
at org.openstreetmap.josm.actions.OpenFileAction.openFile(OpenFileAction.java:53)
at org.openstreetmap.josm.gui.FileDrop$1.filesDropped(FileDrop.java:80)
at org.openstreetmap.josm.gui.FileDrop$2.drop(FileDrop.java:349)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(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.processDropTargetEvent(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.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)

Attachments (1)

legacy.patch (662 bytes ) - added by email@… 15 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by plaicy, 15 years ago

It would be easier for debugging if you attach a complete gpx file (which causes the exception) to this ticket,

by email@…, 15 years ago

Attachment: legacy.patch added

comment:2 by anonymous, 15 years ago

It's not specified by the gpx, but there is lots of broken sw out there...

comment:3 by Gubaer, 15 years ago

Resolution: fixed
Status: newclosed

(In [2211]) applied #3287: patch by email@…: link in gpx causes NullPointer Exception

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.