From f47befb512eb70459e4707221a3a2b48f3bdeac2 Mon Sep 17 00:00:00 2001
From: Michael Zangl <michael.zangl@student.kit.edu>
Date: Wed, 1 Jul 2015 14:23:03 +0200
Subject: [PATCH 4/8] Workaround for NPE in ImproveWayAccuracyHelper.java
---
.../openstreetmap/josm/actions/mapmode/ImproveWayAccuracyHelper.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyHelper.java b/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyHelper.java
index bacf73e..a0958c8 100644
a
|
b
|
final class ImproveWayAccuracyHelper {
|
85 | 85 | mainLoop: |
86 | 86 | for (Node n : w.getNodes()) { |
87 | 87 | EastNorth nEN = n.getEastNorth(); |
| 88 | if (nEN == null) { |
| 89 | // Might happen if lat/lon for that point are not known. |
| 90 | continue; |
| 91 | } |
88 | 92 | currentDistance = pEN.distance(nEN); |
89 | 93 | |
90 | 94 | if (currentDistance < bestDistance) { |