@@ -21,7 +21,6 @@ package org.hswebframework.web.bean.config;
import org.hswebframework.web.commons.beans.GenericBean;
-import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@@ -91,7 +91,9 @@ public class SimpleConfigBean extends SimpleGenericBean<String> implements Confi
if (cache == null) {
synchronized (this) {
- if (content == null || content.isEmpty()) cache = new HashMap<>();
+ if (content == null || content.isEmpty()) {
+ return null;
+ }
cache = content.stream()
.collect(Collectors.toMap(ConfigContent::getKey, content -> content));
}