!113 fix:AbsSetting.getStr

Merge pull request !113 from SandKing/v5-dev
This commit is contained in:
Looly 2020-03-20 09:26:16 +08:00 committed by Gitee
commit 887a2634e9

View File

@ -46,7 +46,7 @@ public abstract class AbsSetting implements OptNullBasicTypeFromStringGetter<Str
*/
public String getStr(String key, String group, String defaultValue) {
final String value = getByGroup(key, group);
if (StrUtil.isBlank(value)) {
if (value == null) {
return defaultValue;
}
return value;