diff --git a/nacos-spring-context/src/main/java/com/alibaba/nacos/spring/util/ConfigParseUtils.java b/nacos-spring-context/src/main/java/com/alibaba/nacos/spring/util/ConfigParseUtils.java index 6f64d7a..77f91fd 100644 --- a/nacos-spring-context/src/main/java/com/alibaba/nacos/spring/util/ConfigParseUtils.java +++ b/nacos-spring-context/src/main/java/com/alibaba/nacos/spring/util/ConfigParseUtils.java @@ -92,7 +92,8 @@ public static Map toProperties(final String context, String type if (DEFAULT_CONFIG_PARSE_MAP.containsKey(type)) { ConfigParse configParse = DEFAULT_CONFIG_PARSE_MAP.get(type); - return configParse.parse(context); + Map parseMap = configParse.parse(context); + return parseMap == null ? new HashMap<>() : parseMap; } else { throw new UnsupportedOperationException(