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 { } else {
if (digit){ if (digit){
try { if (word != -1) {
double dl = Double.parseDouble(s.substring(word, i)); try {
d.add(dl); double dl = Double.parseDouble(s.substring(word, i));
all.add(dl); d.add(dl);
strings.add(s.substring(word, i)); all.add(dl);
digit = false; strings.add(s.substring(word, i));
word = -1; digit = false;
} catch (NumberFormatException e) { word = -1;
} catch (NumberFormatException e) {
}
} }
} }
if (nonwh) { if (nonwh) {