From 998cd1642f4ae3819f18061468755bf992257a52 Mon Sep 17 00:00:00 2001 From: Enis Soztutar Date: Thu, 13 Feb 2014 01:56:11 +0000 Subject: [PATCH 04/45] HBASE-10517 NPE in MetaCache.clearCache() git-svn-id: https://svn.apache.org/repos/asf/hbase/branches/hbase-10070@1567827 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/hadoop/hbase/client/MetaCache.java | 3 +++ 1 file changed, 3 insertions(+) diff --git hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetaCache.java hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetaCache.java index b8cd429..10a48ae 100644 --- hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetaCache.java +++ hbase-client/src/main/java/org/apache/hadoop/hbase/client/MetaCache.java @@ -329,6 +329,9 @@ public class MetaCache { TableName tableName = location.getRegionInfo().getTable(); ConcurrentMap tableLocations = getTableLocations(tableName); RegionLocations rll = tableLocations.get(location.getRegionInfo().getStartKey()); + if (rll == null) { + return; + } RegionLocations updatedLocations = rll.remove(location); if (updatedLocations.isEmpty()) { tableLocations.remove(location.getRegionInfo().getStartKey(), rll); -- 2.0.0