Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#2421 closed defect (fixed)

[PATCH]Exception when open GPX file with negative HDOP

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

Description

When I open a GPX file with negative HDOP values JOSM give me an exception (java.lang.ArrayIndexOutOfBoundsException). The line in the GPX is: "<hdop>-9.700000</hdop>". If I remove the "-" all goes ok. I try with some previous versions, with latest more or less stable (1529) and with latest (1930). All the same. I have windows XPsp2 and java 6_13.

Attachments (1)

hdop.patch (2.6 KB ) - added by jttt 15 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by stoecker, 15 years ago

We should fix the exception, but generally negative HDOP's can't exist, so the basic GPX file is broken.

comment:2 by dmuecke, 15 years ago

Would be great if you attach a sample file to reproduce the issue.

comment:3 by jttt, 15 years ago

Summary: Exception when open GPX file with negative HDOP[PATCH]Exception when open GPX file with negative HDOP

GPX file is broken, anyway the whole thing is pretty easy to fix.

by jttt, 15 years ago

Attachment: hdop.patch added

comment:4 by stoecker, 15 years ago

Resolution: fixed
Status: newclosed

In r1638.

comment:5 by damjang, 15 years ago

I know that the GPX is broken (or non standard). The tracks comes from CetusGps on Palm (not more developed!) and GPSBabel. I also send the bug report to GPSBabel. Anyway thank you for patching josm!

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.