Ignore:
Timestamp:
2010-11-09T23:17:55+01:00 (14 years ago)
Author:
oliverw
Message:

Bugfix: NP exception in findMinimum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/OsmUtils.java

    r24166 r24171  
    2323import org.openstreetmap.josm.data.osm.RelationMember;
    2424import org.openstreetmap.josm.data.osm.Way;
     25import org.openstreetmap.josm.tools.CheckParameterUtil;
    2526import org.openstreetmap.josm.tools.Pair;
    2627
     
    6768         */
    6869        private static double findMinimum(LatLon a, LatLon b, LatLon c) {
     70                CheckParameterUtil.ensureParameterNotNull(c, "c");
     71                CheckParameterUtil.ensureParameterNotNull(b, "b");
     72                CheckParameterUtil.ensureParameterNotNull(a, "a");
     73               
    6974                LatLon mid = new LatLon((a.lat() + b.lat()) / 2, (a.lon() + b.lon()) / 2);
    7075               
Note: See TracChangeset for help on using the changeset viewer.