From 7e439ed42f73b7f4ca3d9bf5865b88ad8667fb32 Mon Sep 17 00:00:00 2001 From: Jean-Daniel Cryans Date: Mon, 22 Dec 2008 13:36:04 +0000 Subject: [PATCH] HBASE-1079 Dumb NPE in ServerCallable hides the RetriesExhausted exception git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@728688 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + src/java/org/apache/hadoop/hbase/client/ServerCallable.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index 3da24853a01..e264ecff87f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -112,6 +112,7 @@ Release 0.19.0 - Unreleased HBASE-1067 TestRegionRebalancing broken by running of hdfs shutdown thread HBASE-1070 Up default index interval in TRUNK and branch HBASE-1045 Hangup by regionserver causes write to fail + HBASE-1079 Dumb NPE in ServerCallable hides the RetriesExhausted exception IMPROVEMENTS HBASE-901 Add a limit to key length, check key and value length on client side diff --git a/src/java/org/apache/hadoop/hbase/client/ServerCallable.java b/src/java/org/apache/hadoop/hbase/client/ServerCallable.java index ab5fe6b4cb4..0172ff716d6 100644 --- a/src/java/org/apache/hadoop/hbase/client/ServerCallable.java +++ b/src/java/org/apache/hadoop/hbase/client/ServerCallable.java @@ -68,6 +68,9 @@ public abstract class ServerCallable implements Callable { /** @return the region name */ public byte[] getRegionName() { + if (location == null) { + return null; + } return location.getRegionInfo().getRegionName(); }