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