HBASE-19445 PerformanceEvaluation NPE processing split policy option

This commit is contained in:
Andrew Purtell 2017-12-06 14:08:55 -08:00
parent cf73199d06
commit 6c2d51132f
1 changed files with 1 additions and 1 deletions

View File

@ -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;