You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2011/05/05 07:19:00 UTC

svn commit: r1099684 - /hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java

Author: stack
Date: Thu May  5 05:18:59 2011
New Revision: 1099684

URL: http://svn.apache.org/viewvc?rev=1099684&view=rev
Log:
Backport fix for broke jenkins build -- TestAdmin.testCreateTableWithRegions.... HServerAddress hashcode was getting NPE

Modified:
    hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java

Modified: hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java?rev=1099684&r1=1099683&r2=1099684&view=diff
==============================================================================
--- hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java (original)
+++ hbase/branches/0.90/src/main/java/org/apache/hadoop/hbase/HServerAddress.java Thu May  5 05:18:59 2011
@@ -146,8 +146,8 @@ public class HServerAddress implements W
 
   @Override
   public int hashCode() {
-    int result = address.hashCode();
-    result ^= stringValue.hashCode();
+    int result = address == null? 0: address.hashCode();
+    result ^= toString().hashCode();
     return result;
   }