Skip to content

Commit

Permalink
[function] fix update user config (apache#10731)
Browse files Browse the repository at this point in the history
Fixes apache#10720

fix update user config

(cherry picked from commit 791c0ac)
  • Loading branch information
nicoloboschi committed Oct 18, 2021
1 parent 1ffa32c commit b1c80e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,11 @@ void processArguments() throws Exception {
if (null != userConfigString) {
Type type = new TypeToken<Map<String, String>>() {}.getType();
Map<String, Object> userConfigMap = new Gson().fromJson(userConfigString, type);
if (userConfigMap == null) {
userConfigMap = new HashMap<>();
}
functionConfig.setUserConfig(userConfigMap);
}
if (functionConfig.getUserConfig() == null) {
functionConfig.setUserConfig(new HashMap<>());
}

if (parallelism != null) {
functionConfig.setParallelism(parallelism);
Expand Down

0 comments on commit b1c80e7

Please sign in to comment.