HBASE-10108 NullPointerException thrown while using Canary with '-regionserver' option (Takeshi Miao)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1549683 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0e8a141437
commit
08bd55aab2
|
@ -568,6 +568,8 @@ public final class Canary implements Tool {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this.targets == null || this.targets.length == 0) return true;
|
||||||
|
|
||||||
for (String target : this.targets) {
|
for (String target : this.targets) {
|
||||||
for (TableName tableName : tableNames) {
|
for (TableName tableName : tableNames) {
|
||||||
if (target.equals(tableName.getNameAsString())) {
|
if (target.equals(tableName.getNameAsString())) {
|
||||||
|
|
Loading…
Reference in New Issue