Modify

Opened 16 years ago

Closed 16 years ago

#1540 closed defect (duplicate)

NullPointerException after loading GPX file

Reported by: hkucharek Owned by: framm
Priority: major Milestone:
Component: unspecified Version: latest
Keywords: gpx import markers Cc:

Description

Loading the following GXP-file causes a NullPointerException:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<gpx version="1.1" creator="GPS Utility 4.20 - http:/www.gpsu.co.uk"

xmlns="http://www.topografix.com/GPX/1/1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">

<wpt lat="49.009638" lon="8.405070"><ele>132</ele><name>PUSH LOG POINT #1</name><cmt>LAT.=49.0096383, LONG.=8.4050699, ALT.=132M, SPEED=1KM/H, COURSE=244DEG.</cmt><desc>LAT.=49.0096383, LONG.=8.4050699, ALT.=132M, SPEED=1KM/H, COURSE=244DEG.</desc><sym>Pushpin-C</sym></wpt>
</gpx>


Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 943
Node Kind: directory
Last Changed Author: framm
Last Changed Rev: 943
Last Changed Date: 2008-09-10 01:09:39 +0200 (Wed, 10 Sep 2008)

java.lang.NullPointerException

at org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer.<init>(MarkerLayer.java:85)
at org.openstreetmap.josm.actions.OpenAction.openFileAsGpx(OpenAction.java:97)
at org.openstreetmap.josm.actions.OpenAction.openFile(OpenAction.java:58)
at org.openstreetmap.josm.actions.OpenAction.actionPerformed(OpenAction.java:49)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
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.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)


Original GPS-log was from a WBT-201, converted to GPX by the accompanying TimeMachineX software. The resulting GPX-file was postprocessed with GPS-Utility 4.2 (http:/www.gpsu.co.uk)

Attachments (0)

Change History (1)

comment:1 by stoecker, 16 years ago

Resolution: duplicate
Status: newclosed

Duplicate. #1532. Please update first before reporting bugs.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain framm.
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.