Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrayIndexOutOfBoundsException in DoubleArray #35

Closed
eliaslevy opened this issue Oct 22, 2017 · 3 comments
Closed

ArrayIndexOutOfBoundsException in DoubleArray #35

eliaslevy opened this issue Oct 22, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@eliaslevy
Copy link
Contributor

A DoubleArray trie with input strings of

php.a
php.e
php.o
e
php.elu
php.s
php.x

results in

java.lang.ArrayIndexOutOfBoundsException: -1
	at org.trie4j.doublearray.DoubleArray.commonPrefixSearchWithTermId(DoubleArray.java:313)

when you call commonPrefixSearchWithTermId with the value php.ele.

@takawitter
Copy link
Owner

I reproduced the problem.
It will be fixed soon.

@takawitter takawitter self-assigned this Oct 22, 2017
@takawitter takawitter added the bug label Oct 22, 2017
@takawitter takawitter added this to the 0.9.7 milestone Oct 22, 2017
@takawitter
Copy link
Owner

takawitter commented Oct 22, 2017

Thanks @eliaslevy for reporting the issue :)

I published the binaries to maven repository with fix for this issue.
It may take few hours to be mirrored.

@eliaslevy
Copy link
Contributor Author

Thanks for the quick fix. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants