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

ZFastTrie - null pointer on add operation #5

Closed
cornelcreanga opened this issue Apr 22, 2019 · 1 comment
Closed

ZFastTrie - null pointer on add operation #5

cornelcreanga opened this issue Apr 22, 2019 · 1 comment

Comments

@cornelcreanga
Copy link

Error message:

Exception in thread "main" java.lang.NullPointerException
at it.unimi.dsi.sux4j.util.ZFastTrie.addBefore(ZFastTrie.java:778)
at it.unimi.dsi.sux4j.util.ZFastTrie.add(ZFastTrie.java:1153)
at java.base/java.util.AbstractCollection.addAll(AbstractCollection.java:352)
at com.creanga.sux4jissues.ZFastTrieNullPointer.main(ZFastTrieNullPointer.java:17)

Sux4J version: 4.3.0

To reproduce the issue run the following class:

https://github.com/cornelcreanga/Sux4J-issues/blob/master/src/main/java/com/creanga/sux4jissues/ZFastTrieNullPointer.java

@vigna
Copy link
Owner

vigna commented Apr 22, 2019

You cannot use a non-prefix-free transformation. It's written clearly in the documentation.

@vigna vigna closed this as completed Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants