I noticed an edge case that causes the put method of PatriciaTrie to crash. This happens when one tries to insert some string and also the same string appended with one or more U+FFFF.
For example:
PatriciaTrie<String> trie = new PatriciaTrie<>();
trie.put("a", "0");
trie.put("a\uFFFF", "1");
I noticed an edge case that causes the
put
method ofPatriciaTrie
to crash. This happens when one tries to insert some string and also the same string appended with one or more U+FFFF.For example:
causes an exception.
This PR fixes the issue.