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:
parent
8df30d650e
commit
1f0d347474
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue