hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anoopsamj...@apache.org
Subject git commit: HBASE-11500 Possible null pointer dereference of regionLocation in ReversedScannerCallable. (Mike Drob)
Date Sat, 12 Jul 2014 12:47:43 GMT
Repository: hbase
Updated Branches:
  refs/heads/master dba294576 -> 5a408af65


HBASE-11500 Possible null pointer dereference of regionLocation in ReversedScannerCallable.
(Mike Drob)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/5a408af6
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/5a408af6
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/5a408af6

Branch: refs/heads/master
Commit: 5a408af65f76676e00e7ff7858370b954ad506c9
Parents: dba2945
Author: anoopsjohn <anoopsamjohn@gmail.com>
Authored: Sat Jul 12 18:17:17 2014 +0530
Committer: anoopsjohn <anoopsamjohn@gmail.com>
Committed: Sat Jul 12 18:17:17 2014 +0530

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/client/ReversedScannerCallable.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/5a408af6/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ReversedScannerCallable.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ReversedScannerCallable.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ReversedScannerCallable.java
index 98823fd..577b134 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ReversedScannerCallable.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ReversedScannerCallable.java
@@ -167,7 +167,7 @@ public class ReversedScannerCallable extends ScannerCallable {
       } else {
         throw new DoNotRetryIOException("Does hbase:meta exist hole? Locating row "
             + Bytes.toStringBinary(currentKey) + " returns incorrect region "
-            + regionLocation.getRegionInfo());
+            + (regionLocation == null ? null : regionLocation.getRegionInfo()));
       }
       currentKey = regionLocation.getRegionInfo().getEndKey();
     } while (!Bytes.equals(currentKey, HConstants.EMPTY_END_ROW)


Mime
View raw message