diff --git a/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java b/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java index 0646ca51e91..3c361de0149 100644 --- a/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java +++ b/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java @@ -886,7 +886,9 @@ public class FSUtils { throws IOException { Path p = getTableInfoPath(rootdir, tablename); FileStatus [] status = fs.listStatus(p); - if (status.length < 1) throw new FileNotFoundException("No status for " + p.toString()); + if (status == null || status.length < 1) { + throw new FileNotFoundException("No status for " + p.toString()); + } return status[0].getModificationTime(); }