Ignore:
Timestamp:
2018-08-16T20:07:05+02:00 (18 months ago)
Author:
Don-vip
Message:

fix #16633 - add robustness against invalid time entries in GPX files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmServerUserInfoReader.java

    r12510 r14159  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import java.time.DateTimeException;
    67import java.util.LinkedList;
    78import java.util.List;
     
    1617import org.openstreetmap.josm.data.osm.UserInfo;
    1718import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     19import org.openstreetmap.josm.tools.UncheckedParseException;
    1820import org.openstreetmap.josm.tools.XmlParsingException;
    1921import org.openstreetmap.josm.tools.date.DateUtils;
     
    129131
    130132            return userInfo;
    131         } catch (XPathException e) {
     133        } catch (XPathException | UncheckedParseException | DateTimeException e) {
    132134            throw new XmlParsingException(e);
    133135        }
Note: See TracChangeset for help on using the changeset viewer.