Ignore:
Timestamp:
2014-12-19T01:52:29+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #10855 - fix NPE - better handling of nodes without coordinates

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DistributeAction.java

    r7005 r7828  
    155155        for (Iterator<Node> it = col.iterator(); it.hasNext();) {
    156156            Node n = it.next();
    157             if (n.getCoor() == null) {
     157            if (!n.isLatLonKnown()) {
    158158                it.remove();
    159159                result.add(n);
  • trunk/src/org/openstreetmap/josm/actions/SelectByInternalPointAction.java

    r7146 r7828  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.actions;
     3
     4import java.awt.event.ActionEvent;
     5import java.util.ArrayList;
     6import java.util.Collection;
     7import java.util.TreeMap;
    38
    49import org.openstreetmap.josm.Main;
     
    1116import org.openstreetmap.josm.data.osm.Way;
    1217import org.openstreetmap.josm.tools.Geometry;
    13 
    14 import java.awt.event.ActionEvent;
    15 import java.util.ArrayList;
    16 import java.util.Collection;
    17 import java.util.TreeMap;
    1818
    1919/**
     
    7272
    7373    /**
    74      * Select a polygon or multipolgon by an internal point.
     74     * Select a polygon or multipolygon by an internal point.
    7575     *
    7676     * @param internalPoint the internal point.
Note: See TracChangeset for help on using the changeset viewer.