Modify

Opened 4 years ago

Closed 4 years ago

#3287 closed defect (fixed)

link in gpx causes NullPointer Exception

Reported by: anonymous Owned by: team
Priority: major 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@… 4 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 4 years ago by plaicy

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

Changed 4 years ago by email@…

comment:2 Changed 4 years ago by anonymous

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

comment:3 Changed 4 years ago by Gubaer

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.