Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse GPX file throw a exception #2

Open
yhonet opened this issue Jun 1, 2016 · 1 comment
Open

parse GPX file throw a exception #2

yhonet opened this issue Jun 1, 2016 · 1 comment

Comments

@yhonet
Copy link

yhonet commented Jun 1, 2016

I don't know what data cause this exception, maybe like "<ele/>".

There is a same problem in another lib:
https://github.com/ticofab/android-gpx-parser
I post a issue at:
ticofab/android-gpx-parser#1

Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String org.w3c.dom.Node.getNodeValue()' on a null object reference
at com.hs.gpxparser.GPXParser.getNodeValueAsDouble(GPXParser.java:515)
at com.hs.gpxparser.GPXParser.parseWaypoint(GPXParser.java:331)
at com.hs.gpxparser.GPXParser.parseTrackSegment(GPXParser.java:488)
at com.hs.gpxparser.GPXParser.parseTrack(GPXParser.java:466)
at com.hs.gpxparser.GPXParser.parseGPX(GPXParser.java:98)

@ThomasDaheim
Copy link
Contributor

I have checked and that gives a proper parser exception:

org.xml.sax.SAXParseException; lineNumber: 14; columnNumber: 6; The element type "ele" must be terminated by the matching end-tag "".

Impossible to say without an example file

himanshu-soni pushed a commit that referenced this issue Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants