Changeset 12425 in josm


Ignore:
Timestamp:
2017-06-22T22:10:26+02:00 (4 weeks ago)
Author:
Don-vip
Message:

fix #14959 - NPE

File:
1 edited

Legend:

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

    r12330 r12425  
    786786     */
    787787    private void tryToSetBaseSegmentForAngleSnap() {
    788         WaySegment seg = Main.map.mapView.getNearestWaySegment(mousePos, OsmPrimitive::isSelectable);
    789         if (seg != null) {
    790             snapHelper.setBaseSegment(seg);
     788        if (mousePos != null) {
     789            WaySegment seg = Main.map.mapView.getNearestWaySegment(mousePos, OsmPrimitive::isSelectable);
     790            if (seg != null) {
     791                snapHelper.setBaseSegment(seg);
     792            }
    791793        }
    792794    }
Note: See TracChangeset for help on using the changeset viewer.