Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
a02ccee4d6
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){
|
protected double parseDouble(Attributes a, String name, double defVal){
|
||||||
double ret = defVal;
|
double ret = defVal;
|
||||||
String value = a.getValue(name);
|
String value = a.getValue(name);
|
||||||
|
if(value == null) {
|
||||||
|
return defVal;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
ret = Double.parseDouble(value);
|
ret = Double.parseDouble(value);
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
|
|
Loading…
Reference in a new issue