修复全局配置错误

This commit is contained in:
TinyAnts 2022-09-13 14:10:56 +08:00
parent 065c5c065c
commit ca8fc2dfae
1 changed files with 3 additions and 0 deletions

View File

@ -171,6 +171,9 @@ public class ArrayUtil {
*/ */
public static List<Integer> stringToListAsInt(String str, String regex){ public static List<Integer> stringToListAsInt(String str, String regex){
List<Integer> list = new ArrayList<>(); List<Integer> list = new ArrayList<>();
if (str.equals("")) {
return list;
}
if (str.contains(regex)){ if (str.contains(regex)){
String[] split = str.split(regex); String[] split = str.split(regex);
for (String value : split) { for (String value : split) {