Fix crash

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

View file

@ -835,6 +835,7 @@ public class MapUtils {
} }
} else { } else {
if (digit){ if (digit){
if (word != -1) {
try { try {
double dl = Double.parseDouble(s.substring(word, i)); double dl = Double.parseDouble(s.substring(word, i));
d.add(dl); d.add(dl);
@ -845,6 +846,7 @@ public class MapUtils {
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
} }
} }
}
if (nonwh) { if (nonwh) {
if(!Character.isLetter(ch)) { if(!Character.isLetter(ch)) {
if(word != -1) { if(word != -1) {