Skip to content

Commit

Permalink
Avoid NPE when call AbstractDynamicConfiguration#execute (apache#6576)
Browse files Browse the repository at this point in the history
  • Loading branch information
likemoongg committed Aug 14, 2020
1 parent 683db2b commit 56353ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public final void close() throws Exception {

@Override
public boolean removeConfig(String key, String group) {
return execute(() -> doRemoveConfig(key, group), -1L);
return Boolean.TRUE.equals(execute(() -> doRemoveConfig(key, group), -1L));
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected final String doGetConfig(String key, String group) throws Exception {
@Override
public final boolean publishConfig(String key, String group, String content) {
String pathKey = buildPathKey(group, key);
return execute(() -> doPublishConfig(pathKey, content), getDefaultTimeout());
return Boolean.TRUE.equals(execute(() -> doPublishConfig(pathKey, content), getDefaultTimeout()));
}

@Override
Expand Down

0 comments on commit 56353ae

Please sign in to comment.