Fix NPE in LoadBalancer that I added with my commit of HBASE-2979

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@997510 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-09-15 21:24:47 +00:00
parent fb42084ba9
commit eecc426f78
1 changed files with 3 additions and 2 deletions

View File

@ -591,7 +591,8 @@ public class LoadBalancer {
@Override
public String toString() {
return "hri=" + this.hri.getRegionNameAsString() + ", src=" +
this.source.getServerName() + ", dest=" + this.dest.getServerName();
(this.source == null? "": this.source.getServerName()) +
", dest=" + this.dest.getServerName();
}
}
}
}