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:
Jonathan Hsieh 2013-12-09 21:16:01 +00:00
parent 0e8a141437
commit 08bd55aab2
1 changed files with 2 additions and 0 deletions

View File

@ -568,6 +568,8 @@ public final class Canary implements Tool {
return false;
}
if (this.targets == null || this.targets.length == 0) return true;
for (String target : this.targets) {
for (TableName tableName : tableNames) {
if (target.equals(tableName.getNameAsString())) {