From 251d9fda0a1c77f589a69d906a1a014ebe2d7071 Mon Sep 17 00:00:00 2001 From: vineeth1995 Date: Thu, 3 Nov 2022 14:42:43 -0700 Subject: [PATCH] [improve][admin] Fix NPE in admin-CLI topic stats command (#18326) Co-authored-by: Vineeth --- .../java/org/apache/pulsar/admin/cli/CmdPersistentTopics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdPersistentTopics.java b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdPersistentTopics.java index 8e3d15ee406e1..5dbb3935ce98a 100644 --- a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdPersistentTopics.java +++ b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdPersistentTopics.java @@ -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)); } }