[OSM-talk] Applet with way support

immanuel.scholz at gmx.de immanuel.scholz at gmx.de
Mon Mar 27 07:17:52 BST 2006


> java.lang.NullPointerException
> 	at org.openstreetmap.util.Line.distance(Line.java:101)
> 	at org.openstreetmap.util.Line.distance(Line.java:92)
> 	at org.openstreetmap.processing.WayMode.mouseReleased(WayMode.java:34)

Thanks. I found the bug. The problem was an forgotten check whether a line is 
incomplete (only its id is known) when searching for the closest line the the 
clicked point.

Ciao, Imi.

PS: The whole "LineOnlyId" - stuff needs a rethought... its implemented in an 
ugly way..

More information about the talk mailing list