From 7e5abab822a685d07455b646358d1c608879f542 Mon Sep 17 00:00:00 2001 From: Andrew Kyle Purtell Date: Sun, 22 Dec 2013 06:46:55 +0000 Subject: [PATCH] HBASE-10221. Region from coprocessor invocations can be null on failure git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1552967 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/hadoop/hbase/client/HTable.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java index a8242d965b6..ae73c514539 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java @@ -1483,7 +1483,9 @@ public class HTable implements HTableInterface { new TreeMap(Bytes.BYTES_COMPARATOR)); coprocessorService(service, startKey, endKey, callable, new Batch.Callback() { public void update(byte[] region, byte[] row, R value) { - results.put(region, value); + if (region != null) { + results.put(region, value); + } } }); return results;