未验证 提交 effe49a1 编写于 作者: wu-sheng's avatar wu-sheng 提交者: GitHub

NPE fix (#2732)

上级 202918cb
......@@ -69,7 +69,9 @@ public class ApplicationConfigLoader implements ConfigLoader<ApplicationConfigur
properties.put(key, value);
final Object replaceValue = yaml.load(PropertyPlaceholderHelper.INSTANCE
.replacePlaceholders(value + "", properties));
properties.replace(key, replaceValue);
if (replaceValue != null) {
properties.replace(key, replaceValue);
}
logger.info("The property with key: {}, value: {}, in {} provider", key, replaceValue.toString(), name);
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册