HBASE-15311 Prevent NPE in BlockCacheViewTmpl.

Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Samir Ahmic 2016-02-23 11:34:09 +01:00 committed by stack
parent 40c55915e7
commit 75c57a04dd
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ org.apache.hadoop.util.StringUtils;
if (bcn.equals("L1")) {
bc = bcs == null || bcs.length == 0? bc: bcs[0];
} else {
if (bcs.length < 2) {
if (bcs == null || bcs.length < 2) {
System.out.println("There is no L2 block cache");
return;
}