Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
[fix][broker] managedLedger.getConfig().getProperties().putAll(proper…
Browse files Browse the repository at this point in the history
…ties) NPE (apache#20361) (#5932)

(cherry picked from commit aa7decc)

Co-authored-by: Heesung Sohn <[email protected]>
(cherry picked from commit 5f6ed1b)
  • Loading branch information
liangyepianzhou committed Oct 24, 2023
1 parent bc7ee1a commit 8765134
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,11 @@ private CompletableFuture<Void> internalUpdateNonPartitionedTopicProperties(Map<

@Override
public void updatePropertiesComplete(Map<String, String> properties, Object ctx) {
if (managedLedger.getConfig().getProperties() == null) {
managedLedger.getConfig().setProperties(new HashMap<>());
}
managedLedger.getConfig().getProperties().putAll(properties);

future.complete(null);
}

Expand Down

0 comments on commit 8765134

Please sign in to comment.