commit 33a584be0e552eb78795a5d7c9d0364907678412 Author: Todd Lipcon Date: Sun Jun 20 20:25:13 2010 -0700 Check for null values in meta in test util diff --git src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java index 38f3627..faace00 100644 --- src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java +++ src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java @@ -617,8 +617,10 @@ public class HBaseTestingUtility { List rows = new ArrayList(); ResultScanner s = t.getScanner(new Scan()); for (Result result : s) { - HRegionInfo info = Writables.getHRegionInfo( - result.getValue(HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER)); + byte[] value = result.getValue( + HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER); + if (value == null) continue; + HRegionInfo info = Writables.getHRegionInfo(value); HTableDescriptor desc = info.getTableDesc(); if (Bytes.compareTo(desc.getName(), tableName) == 0) { LOG.info("getMetaTableRows: row -> " +