# String index out of range: -1

**URL:** <https://discuss.elastic.co/t/string-index-out-of-range-1/98612>\
**Category:** Elasticsearch\
**Created:** [August 29, 2017, 12:00am UTC](https://discuss.elastic.co/t/string-index-out-of-range-1/98612 "2017-08-29T00:00:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saliormoon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saliormoon/32/21499_2.png) [@saliormoon](https://discuss.elastic.co/u/saliormoon)\
**Post date:** [August 29, 2017, 12:00am UTC](https://discuss.elastic.co/t/string-index-out-of-range-1/98612/1 "2017-08-29T00:00:41Z")

</div>

Elasticsearch-master from [https://github.com/saliormoon/elasticsearch](https://github.com/saliormoon/elasticsearch)  
Operating System: Windows  
Gradle version: 3.5

When I build elasticsearch source code with gradle. it has a such exception:

FAILURE: Build failed with an exception.

- What went wrong:  
String index out of range: -1

Could anyone can give me some advice?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 26, 2017, 12:00am UTC](https://discuss.elastic.co/t/string-index-out-of-range-1/98612/2 "2017-09-26T00:00:52Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
