Jason918 commented on a change in pull request #13558: URL: https://github.com/apache/pulsar/pull/13558#discussion_r776555627
########## File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractTopic.java ########## @@ -883,7 +883,7 @@ private void updatePublishDispatcher(Optional<Policies> optPolicies) { //topic-level policy is not set, try to use namespace-level rate policy final String clusterName = brokerService.pulsar().getConfiguration().getClusterName(); - final PublishRate publishRate = policies.publishMaxMessageRate != null + final PublishRate publishRate = policies !=null && policies.publishMaxMessageRate != null Review comment: Why would this policies be null? Do you have any case? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org