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)

(cherry picked from commit aa7decc)
  • Loading branch information
heesung-sn authored and nodece committed Apr 8, 2024
1 parent cc79a28 commit 0e1969d
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 0e1969d

Please sign in to comment.