HBASE-8856 Crash when attempting split with DelimitedKeyPrefixRegionSplitPolicy (Robert Dyer)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1502094 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-07-11 03:23:13 +00:00
parent b93c008efc
commit afca885131
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class DelimitedKeyPrefixRegionSplitPolicy extends IncreasingToUpperBoundR
@Override
protected byte[] getSplitPoint() {
byte[] splitPoint = super.getSplitPoint();
if (delimiter != null) {
if (splitPoint != null && delimiter != null) {
//find the first occurrence of delimiter in split point
int index = com.google.common.primitives.Bytes.indexOf(splitPoint, delimiter);