Update base storage

This commit is contained in:
Victor Shcherb 2015-07-15 12:44:45 +02:00
parent 43ad4e0bca
commit 4d1309a425

View file

@ -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) {