hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1232731 - /hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
Date Wed, 18 Jan 2012 03:07:13 GMT
Author: nspiegelberg
Date: Wed Jan 18 03:07:12 2012
New Revision: 1232731

URL: http://svn.apache.org/viewvc?rev=1232731&view=rev
Log:
[HBASE-5033] Followup: Fix a potential NPE when loading all the store files

Summary: [HBASE-5033] Followup: Fix a potential NPE when loading all the store
files.

Test Plan: Run all the unit tests

Reviewers: kannan

Reviewed By: kannan

CC: hbase-eng@lists, kannan

Differential Revision: https://phabricator.fb.com/D383041

Modified:
    hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java

Modified: hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java?rev=1232731&r1=1232730&r2=1232731&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java (original)
+++ hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/regionserver/Store.java Wed
Jan 18 03:07:12 2012
@@ -285,7 +285,7 @@ public class Store extends SchemaConfigu
     ArrayList<StoreFile> results = new ArrayList<StoreFile>();
     FileStatus files[] = this.fs.listStatus(this.homedir);
 
-    if (files.length == 0) {
+    if (files == null || files.length == 0) {
       return results;
     }
     // initialize the thread pool for opening store files in parallel..



Mime
View raw message