Modify

Opened 10 years ago

Closed 10 years ago

#11432 closed defect (fixed)

Null Pointer Exception when loading GPX file

Reported by: sophom@… Owned by: team
Priority: normal Milestone: 15.05
Component: Core Version: latest
Keywords: template_report gpx importer null pointer exception Cc:

Description

What steps will reproduce the problem?

  1. Start josm
  2. Try to load attached gpx file
  3. get null pointer exception

What is the expected result?

To load the gpx file

What happens instead?

I get a popup saying

"Could not read file '2015-05-09_19-15_Sat.gpx'.
Error is:
null"

The console also display the following message

ERROR: java.lang.NullPointerException
java.lang.NullPointerException
        at org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer.<init>(MarkerLayer.java:104)
        at org.openstreetmap.josm.io.GpxImporter.loadLayers(GpxImporter.java:129)
        at org.openstreetmap.josm.io.GpxImporter.importData(GpxImporter.java:84)
        at org.openstreetmap.josm.io.FileImporter.importDataHandleExceptions(FileImporter.java:85)
        at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.importData(OpenFileAction.java:339)
        at org.openstreetmap.josm.actions.OpenFileAction$OpenFileTask.realRun(OpenFileAction.java:297)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:93)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:161)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

Please provide any additional information below. Attach a screenshot if possible.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2015-05-08 01:31:23
Last Changed Author: stoecker
Revision: 8339
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Relative URL: ^/trunk
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2015-05-07 17:30:43 +0200 (Thu, 07 May 2015)
Last Changed Rev: 8339

Identification: JOSM/1.5 (8339 en) Linux Ubuntu 12.04.5 LTS
Memory Usage: 440 MB / 1299 MB (358 MB allocated, but free)
Java version: 1.7.0_75, Oracle Corporation, OpenJDK 64-Bit Server VM
Java package: openjdk-7-jre:amd64-7u75-2.5.4-1~precise1
VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true]
Program arguments: [1941025.gpx.gz]

Plugins:
- HouseNumberTaggingTool (30892)
- buildings_tools (31120)
- turnrestrictions (31034)

Last errors/warnings:
- E: java.lang.NullPointerException
- E: java.lang.NullPointerException

Attachments (2)

2015-05-09_19-15_Sat.gpx.gz (3.5 KB ) - added by Sopho <sophom@…> 10 years ago.
1941025.gpx.gz (3.5 KB ) - added by Sopho <sophom@…> 10 years ago.
This is the same as the other file but uploaded and then downloaded from the osm website

Download all attachments as: .zip

Change History (4)

by Sopho <sophom@…>, 10 years ago

Attachment: 2015-05-09_19-15_Sat.gpx.gz added

by Sopho <sophom@…>, 10 years ago

Attachment: 1941025.gpx.gz added

This is the same as the other file but uploaded and then downloaded from the osm website

comment:1 by Don-vip, 10 years ago

Milestone: 15.05

comment:2 by Don-vip, 10 years ago

Resolution: fixed
Status: newclosed

In 8354/josm:

fix #11432 - robustness against invalid GPX files

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.