Ignore KML waypoints that do not have a type.

This commit is contained in:
Dennis Guse
2019-10-27 13:40:06 +01:00
parent a83b8f62fe
commit d0bbd7655b
@@ -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) {