Fix crash
This commit is contained in:
parent
13251be6ab
commit
039e212666
1 changed files with 10 additions and 8 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue