Skip to content

Commit

Permalink
[fix][broker] managedLedger.getConfig().getProperties().putAll(proper…
Browse files Browse the repository at this point in the history
…ties) NPE (apache#20361)
  • Loading branch information
heesung-sn authored May 20, 2023
1 parent eae4bd0 commit aa7decc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,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 aa7decc

Please sign in to comment.