parse <ele/> throw exception
yhonet opened this issue · 2 comments
yhonet commented
When there's a "<ele/>" in gpx file, it throw a exception:
GPXParse.readElevation(XmlPullParser parser): line 160
Double ele = Double.valueOf(readText(parser));
I try to fix it:
final String text = readText(parser);
Double ele;
if (TextUtils.isEmpty(text))
{
ele = 0d;
}
else
{
ele = Double.valueOf(text);
}
but another exception throw from GPXParse.readTime(XmlPullParser parser), and I can't catch it.
ticofab commented
Hi @yhonet, and thanks for opening this issue! Can you send me an example route that makes it crash so to help me reproduce it?
ticofab commented
Closing as I cannot reproduce it.