Changeset 19421 in josm


Ignore:
Timestamp:
2025-07-10T19:08:30+02:00 (3 months ago)
Author:
stoecker
Message:

fix #24311 - exception when trying to restore bad coordinate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java

    r18494 r19421  
    450450        public void actionPerformed(ActionEvent e) {
    451451            OsmPrimitive primitive = getPrimitiveFromDataSet(PointInTimeType.REFERENCE_POINT_IN_TIME);
    452             if (!(primitive instanceof Node)) {
     452            if (!(primitive instanceof Node) || ((Node)primitive).getEastNorth() == null) {
    453453                return;
    454454            }
Note: See TracChangeset for help on using the changeset viewer.