You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/03/21 11:23:15 UTC

[GitHub] [pulsar] RobertIndie commented on a change in pull request #14769: [fix][admin] Fix NPE in PulsarAdminBuilder when the service is not set

RobertIndie commented on a change in pull request #14769:
URL: https://github.com/apache/pulsar/pull/14769#discussion_r830999816



##########
File path: pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/PulsarAdminBuilderImpl.java
##########
@@ -44,6 +46,8 @@
 
     @Override
     public PulsarAdmin build() throws PulsarClientException {
+        checkArgument(StringUtils.isNotBlank(conf.getServiceUrl()), "Service URL needs to be specified");

Review comment:
       The `ClientBuilder` also does the same way. https://github.com/apache/pulsar/blob/5ebaafd4288c69d135b295ab563c8ad56affa15b/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ClientBuilderImpl.java#L53




-- 
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-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org