Skip to content

Commit

Permalink
[improve][admin] Fix NPE in admin-CLI topic stats command (apache#18326)
Browse files Browse the repository at this point in the history
Co-authored-by: Vineeth <vineeth.polamreddy@verizonmedia.com>
(cherry picked from commit 251d9fd)
(cherry picked from commit e1e9000)
  • Loading branch information
vineeth1995 authored and nicoloboschi committed Jan 10, 2023
1 parent d8cc4ca commit 34f2e33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ private class GetStats extends CliCommand {
@Override
void run() throws PulsarAdminException {
String persistentTopic = validatePersistentTopic(params);
print(persistentTopics.getStats(persistentTopic, getPreciseBacklog));
print(getPersistentTopics().getStats(persistentTopic, getPreciseBacklog));
}
}

Expand Down

0 comments on commit 34f2e33

Please sign in to comment.