Update base storage
This commit is contained in:
parent
43ad4e0bca
commit
4d1309a425
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue