提交 bfd6b08f 编写于 作者: M Masakazu Kitajo 提交者: Matteo Merli

Correct an invalid null check (#46)

上级 554f0505
......@@ -16,6 +16,7 @@
package com.yahoo.pulsar.client.cli;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import static org.apache.commons.lang3.StringUtils.isBlank;
import java.io.FileInputStream;
import java.net.MalformedURLException;
......@@ -90,7 +91,7 @@ public class PulsarClientTool {
public int run(String[] args) {
try {
if (this.serviceURL == null && this.serviceURL.isEmpty()) {
if (isBlank(this.serviceURL)) {
commandParser.usage();
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册