jetty-9 fixed multiple Trie full attempts

This commit is contained in:
Greg Wilkins 2013-01-15 20:33:47 +11:00
parent bc36eff330
commit 43f14e8ee9
1 changed files with 4 additions and 1 deletions

View File

@ -98,8 +98,11 @@ public class ArrayTernaryTrie<V> implements Trie<V>
if (t==0)
{
node=t=++_rows;
if (_rows==_key.length)
if (_rows>=_key.length)
{
_rows--;
return false;
}
int row=ROW_SIZE*t;
_tree[row]=c;
_tree[last]=(char)t;