Index: applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingGraph.java
===================================================================
--- applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingGraph.java	(revision 29628)
+++ applications/editors/josm/plugins/routing/src/com/innovant/josm/jrt/core/RoutingGraph.java	(revision 29629)
@@ -38,4 +38,5 @@
 import org.jgrapht.graph.DirectedWeightedMultigraph;
 import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.data.coor.LatLon;
 import org.openstreetmap.josm.data.osm.DataSet;
 import org.openstreetmap.josm.data.osm.Node;
@@ -241,5 +242,10 @@
 	 */
 	private void addEdge(Way way,Node from, Node to) {
-		double length = from.getCoor().greatCircleDistance(to.getCoor());
+	    LatLon fromLL = from.getCoor();
+	    LatLon toLL = from.getCoor();
+	    if (fromLL == null || toLL == null) {
+	        return;
+	    }
+		double length = fromLL.greatCircleDistance(toLL);
 
 		OsmEdge edge = new OsmEdge(way, from, to);
@@ -252,5 +258,4 @@
 				+ "(from node " + from.getId() + " to node "
 				+ to.getId() + ") has weight: " + weight);
-		//((GraphDelegator<Node,OsmEdge>) graph).setEdgeWeight(edge, weight);
 		((DirectedWeightedMultigraph<Node,OsmEdge>)graph).setEdgeWeight(edge, weight);
 	}
