hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmhs...@apache.org
Subject svn commit: r1426789 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
Date Sat, 29 Dec 2012 17:16:14 GMT
Author: jmhsieh
Date: Sat Dec 29 17:16:14 2012
New Revision: 1426789

URL: http://svn.apache.org/viewvc?rev=1426789&view=rev
Log:
HBASE-7459 NPE in HMaster TestLocalHBaseCluster

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java?rev=1426789&r1=1426788&r2=1426789&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java Sat
Dec 29 17:16:14 2012
@@ -2050,7 +2050,9 @@ Server {
   }
 
   public void shutdown() throws IOException {
-    spanReceiverHost.closeReceivers();
+    if (spanReceiverHost != null) { 
+      spanReceiverHost.closeReceivers();
+    }
     if (cpHost != null) {
       cpHost.preShutdown();
     }



Mime
View raw message