forked from upstream-mirrors/OpenTracks
Ignore KML waypoints that do not have a type.
This commit is contained in:
@@ -182,6 +182,10 @@ public class KmlFileTrackImporter extends AbstractFileTrackImporter {
|
|||||||
* On waypoint end.
|
* On waypoint end.
|
||||||
*/
|
*/
|
||||||
private void onWaypointEnd() throws SAXException {
|
private void onWaypointEnd() throws SAXException {
|
||||||
|
if (waypointType == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Add a waypoint if the waypointType matches
|
// Add a waypoint if the waypointType matches
|
||||||
WaypointType type;
|
WaypointType type;
|
||||||
switch (waypointType) {
|
switch (waypointType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user