HBASE-7459 NPE in HMaster TestLocalHBaseCluster

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1426789 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jonathan Hsieh 2012-12-29 17:16:14 +00:00
parent 9e249881ef
commit 21e5b5200d
1 changed files with 3 additions and 1 deletions

View File

@ -2050,7 +2050,9 @@ Server {
} }
public void shutdown() throws IOException { public void shutdown() throws IOException {
if (spanReceiverHost != null) {
spanReceiverHost.closeReceivers(); spanReceiverHost.closeReceivers();
}
if (cpHost != null) { if (cpHost != null) {
cpHost.preShutdown(); cpHost.preShutdown();
} }