I think it's the getResultsPage method that causes your problem. If the
results is none, and the parameter index equels any value that is large than
0, an OutOfBound Exception will occur.

2006/11/18, Adam K <[EMAIL PROTECTED]>:


    public Product getResultsPage(int index)
    {
        if(this.results == null)
        {
            this.results = new ArrayList();
        }

        while(index >= this.results.size())
        {
            this.results.add(new Product());
        }
        return (Product) results.get(index);
    }



--
Wong Tseng
王曾

Reply via email to