mirror of https://github.com/apache/lucene.git
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:
parent
c84af3d08a
commit
c52d04197a
|
@ -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('/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue