The result of the nodes endpoint can contain deleted nodes. These nodes does not have lat and lon properties since they are invisible. In the case when there are at least one deleted node in the result, the parser throws a NullPointerException.
Caused by: de.westnordost.osmapi.common.errors.XmlParserException: Error parsing XML at START_TAG (empty) @3:115 in java.io.InputStreamReader@28416773
at de.westnordost.osmapi.common.XmlParser.doParse(XmlParser.java:59)
at de.westnordost.osmapi.map.MapDataParser.parse(MapDataParser.java:62)
at de.westnordost.osmapi.map.MapDataParser.parse(MapDataParser.java:25)
at de.westnordost.osmapi.OsmConnection.handleResponse(OsmConnection.java:271)
... 36 more
Caused by: java.lang.NullPointerException
at de.westnordost.osmapi.map.MapDataParser.onStartElement(MapDataParser.java:127)
at de.westnordost.osmapi.common.XmlParser.doParse(XmlParser.java:40)
... 39 more
The result of the nodes endpoint can contain deleted nodes. These nodes does not have lat and lon properties since they are invisible. In the case when there are at least one deleted node in the result, the parser throws a NullPointerException.
Here is an example response: http://api.openstreetmap.org/api/0.6/nodes?nodes=5
Here is the relevant part of the stacktrace: