SOLR-4580: fix strip chroot call.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1622319 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2014-09-03 19:15:40 +00:00
parent c84af3d08a
commit c52d04197a
1 changed files with 1 additions and 0 deletions

View File

@ -196,6 +196,7 @@ public class ZkContainer {
} }
private String stripChroot(String zkRun) { private String stripChroot(String zkRun) {
if (zkRun == null || zkRun.trim().length() == 0) return zkRun;
return zkRun.substring(0, zkRun.lastIndexOf('/')); return zkRun.substring(0, zkRun.lastIndexOf('/'));
} }