Try fix for failing jenkins test -- handle case where an HSA has a null internal address

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1096559 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-04-25 18:50:21 +00:00
parent 8df30d650e
commit 1f0d347474
1 changed files with 2 additions and 2 deletions

View File

@ -146,8 +146,8 @@ public class HServerAddress implements WritableComparable<HServerAddress> {
@Override
public int hashCode() {
int result = address.hashCode();
result ^= stringValue.hashCode();
int result = address == null? 0: address.hashCode();
result ^= toString().hashCode();
return result;
}