Fix crash

This commit is contained in:
PavelRatushny 2017-11-06 13:40:21 +02:00
parent 13251be6ab
commit 039e212666

View file

@ -835,14 +835,16 @@ public class MapUtils {
}
} else {
if (digit){
try {
double dl = Double.parseDouble(s.substring(word, i));
d.add(dl);
all.add(dl);
strings.add(s.substring(word, i));
digit = false;
word = -1;
} catch (NumberFormatException e) {
if (word != -1) {
try {
double dl = Double.parseDouble(s.substring(word, i));
d.add(dl);
all.add(dl);
strings.add(s.substring(word, i));
digit = false;
word = -1;
} catch (NumberFormatException e) {
}
}
}
if (nonwh) {