Changeset 18619 in josm for trunk/src/org


Ignore:
Timestamp:
2022-12-27T16:51:43+01:00 (23 months ago)
Author:
taylor.smock
Message:

Fix #22600: NPE: cannot invoke "EastNorth.isValid" because "common" is null

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/SharpAngles.java

    r17100 r18619  
    9292
    9393    private void checkAngle(Node node1, Node node2, Node node3, int i, Way way, boolean last) {
    94         if (node1 == null || node2 == null || node3 == null) return;
     94        if (node1 == null || !node1.isLatLonKnown()
     95            || node2 == null || !node2.isLatLonKnown()
     96            || node3 == null || !node3.isLatLonKnown()) {
     97            return;
     98        }
    9599        EastNorth n1 = node1.getEastNorth();
    96100        EastNorth n2 = node2.getEastNorth();
Note: See TracChangeset for help on using the changeset viewer.