forked from External/mage
Fixed some more exception and/or logging problems.
This commit is contained in:
parent
9268281c4b
commit
2f016c8ea6
11 changed files with 63 additions and 47 deletions
|
|
@ -27,8 +27,6 @@
|
|||
*/
|
||||
package mage.util;
|
||||
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
|
|
@ -111,7 +109,10 @@ public class CircularList<E> implements List<E>, Iterable<E>, Serializable {
|
|||
* @return
|
||||
*/
|
||||
public E get() {
|
||||
return list.get(this.index);
|
||||
if (list.size() > this.index) {
|
||||
return list.get(this.index);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue