/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param endPos ending position
*/
public BreakPossPosIter(List bpList, int startPos, int endPos) {
- super(bpList.listIterator(startPos));
+ super((bpList.size() > 0 ? bpList.listIterator(startPos) : bpList.listIterator()));
iterCount = endPos - startPos;
}