gaozhangmin commented on a change in pull request #12961:
URL: https://github.com/apache/pulsar/pull/12961#discussion_r756531871



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
##########
@@ -3218,7 +3219,7 @@ public boolean checkSubscriptionTypesEnable(SubType 
subType) throws Exception {
                 if (topicPolicies == null) {
                     return checkNsAndBrokerSubscriptionTypesEnable(topicName, 
subType);
                 } else {
-                    if (topicPolicies.getSubscriptionTypesEnabled().isEmpty()) 
{
+                    if 
(CollectionUtils.isEmpty(topicPolicies.getSubscriptionTypesEnabled())) {

Review comment:
       topicPolicies.getSubscriptionTypesEnabled() default value is empty list.
   +1




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to