diff --git a/OsmAnd-java/src/net/osmand/osm/io/OsmBaseStorage.java b/OsmAnd-java/src/net/osmand/osm/io/OsmBaseStorage.java index 4d26dc772e..8e7d10bde2 100644 --- a/OsmAnd-java/src/net/osmand/osm/io/OsmBaseStorage.java +++ b/OsmAnd-java/src/net/osmand/osm/io/OsmBaseStorage.java @@ -153,6 +153,9 @@ public class OsmBaseStorage extends DefaultHandler { protected double parseDouble(Attributes a, String name, double defVal){ double ret = defVal; String value = a.getValue(name); + if(value == null) { + return defVal; + } try { ret = Double.parseDouble(value); } catch (NumberFormatException e) {