From 6c2d51132ff2d16035cf5ea614d4887f4113f155 Mon Sep 17 00:00:00 2001 From: Andrew Purtell Date: Wed, 6 Dec 2017 14:08:55 -0800 Subject: [PATCH] HBASE-19445 PerformanceEvaluation NPE processing split policy option --- .../java/org/apache/hadoop/hbase/PerformanceEvaluation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java index 7230b412fb3..85d36139395 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java @@ -384,7 +384,7 @@ public class PerformanceEvaluation extends Configured implements Tool { if (opts.replicas != DEFAULT_OPTS.replicas) { desc.setRegionReplication(opts.replicas); } - if (!opts.splitPolicy.equals(DEFAULT_OPTS.splitPolicy)) { + if (opts.splitPolicy != null && !opts.splitPolicy.equals(DEFAULT_OPTS.splitPolicy)) { desc.setRegionSplitPolicyClassName(opts.splitPolicy); } return desc;