Skip to content

Commit

Permalink
fix: empty yaml npe (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbxyyx authored Dec 18, 2023
1 parent b1351d7 commit 1ada9f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ public static Map<String, Object> 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<String, Object> parseMap = configParse.parse(context);
return parseMap == null ? new HashMap<>() : parseMap;
}
else {
throw new UnsupportedOperationException(
Expand Down

0 comments on commit 1ada9f4

Please sign in to comment.