codelipenghui commented on a change in pull request #9831:
URL: https://github.com/apache/pulsar/pull/9831#discussion_r589144735



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/AdminResource.java
##########
@@ -827,7 +827,9 @@ protected void checkArgument(boolean b, String 
errorMessage) {
     }
 
     protected void validatePersistencePolicies(PersistencePolicies 
persistence) {
-        checkNotNull(persistence, "persistence policies should not be null");
+        if (persistence == null) {
+            return;
+        }

Review comment:
       Yes, from the method definition, it has just done the request 
validation, so if we have a different purpose, we can use wrapper or others.




----------------------------------------------------------------
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.

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


Reply via email to