Skip to content

Commit

Permalink
Correct an invalid null check (apache#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskit authored and merlimat committed Sep 29, 2016
1 parent 554f050 commit bfd6b08
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -90,7 +91,7 @@ private void updateConfig() throws UnsupportedAuthenticationException, Malformed

public int run(String[] args) {
try {
if (this.serviceURL == null && this.serviceURL.isEmpty()) {
if (isBlank(this.serviceURL)) {
commandParser.usage();
return -1;
}
Expand Down

0 comments on commit bfd6b08

Please sign in to comment.