From c52d04197a678ebcb32d4c8802fc9b4b1d472272 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Wed, 3 Sep 2014 19:15:40 +0000 Subject: [PATCH] SOLR-4580: fix strip chroot call. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1622319 13f79535-47bb-0310-9956-ffa450edef68 --- solr/core/src/java/org/apache/solr/core/ZkContainer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/solr/core/src/java/org/apache/solr/core/ZkContainer.java b/solr/core/src/java/org/apache/solr/core/ZkContainer.java index c2b5edbf653..ff1de440389 100644 --- a/solr/core/src/java/org/apache/solr/core/ZkContainer.java +++ b/solr/core/src/java/org/apache/solr/core/ZkContainer.java @@ -196,6 +196,7 @@ public class ZkContainer { } private String stripChroot(String zkRun) { + if (zkRun == null || zkRun.trim().length() == 0) return zkRun; return zkRun.substring(0, zkRun.lastIndexOf('/')); }