Browse Source

REPORT-67417 处理配置空值场景

release/11.0
hades 3 years ago
parent
commit
781c00e627
  1. 12
      designer-base/src/main/java/com/fr/design/actions/help/alphafine/AlphaFineConfigManager.java

12
designer-base/src/main/java/com/fr/design/actions/help/alphafine/AlphaFineConfigManager.java

@ -192,9 +192,12 @@ public class AlphaFineConfigManager implements XMLable {
if (tmpVal != null) {
tmpVal = tmpVal.replace("[",StringUtils.EMPTY).replace("]",StringUtils.EMPTY);
Stack<String> stack = new SizedStack<>(3);
List<String> historyList = Arrays.asList(tmpVal.split(","));
String[] historyList = tmpVal.split(",");
for (String history : historyList) {
stack.add(history.trim());
String value = history.trim();
if (StringUtils.isNotEmpty(value)) {
stack.add(value);
}
}
historySearchMap.put(reader.getAttrAsString("user", StringUtils.EMPTY), stack);
}
@ -215,7 +218,10 @@ public class AlphaFineConfigManager implements XMLable {
String[] idArr = tmpVal.split(",");
Set<Long> setId = new HashSet<>();
for (String id : idArr) {
setId.add(Long.parseLong(id.trim()));
String value = id.trim();
if (StringUtils.isNotEmpty(value)) {
setId.add(Long.parseLong(value));
}
}
readSetMap.put(reader.getAttrAsString("user", StringUtils.EMPTY), setId);
}

Loading…
Cancel
Save