From 4d1309a4251fce43c3a5a51cfb7de27c14da26f4 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Wed, 15 Jul 2015 12:44:45 +0200 Subject: [PATCH] Update base storage --- OsmAnd-java/src/net/osmand/osm/io/OsmBaseStorage.java | 3 +++ 1 file changed, 3 insertions(+) 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) {