*) Fixing problems of list operation if index and queue size are both 0.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@687 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 51b48a10e8
commit 3587407039

@ -122,6 +122,7 @@ public class plasmaSwitchboardQueue {
}
public ArrayList list(int index) throws IOException {
if ((index==0) && (sbQueueStack.size()==0)) return new ArrayList(0);
if ((index < 0) || (index >= sbQueueStack.size())) throw new ArrayIndexOutOfBoundsException();
ArrayList list = sbQueueStack.botList(index);
for (int i=0; i < list.size(); i++) {

Loading…
Cancel
Save