HBASE-11030 HBaseTestingUtility.getMiniHBaseCluster should be able to return null.

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1588613 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
larsh 2014-04-19 05:28:47 +00:00
parent b80a597997
commit e542dac2a8
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ public class HBaseTestingUtility extends HBaseCommonTestingUtility {
* @see #startMiniCluster()
*/
public MiniHBaseCluster getMiniHBaseCluster() {
if (this.hbaseCluster instanceof MiniHBaseCluster) {
if (this.hbaseCluster == null || this.hbaseCluster instanceof MiniHBaseCluster) {
return (MiniHBaseCluster)this.hbaseCluster;
}
throw new RuntimeException(hbaseCluster + " not an instance of " +