Inlist: add exception message, fix #974
This commit is contained in:
parent
79916df991
commit
b0baf72462
@ -136,7 +136,7 @@ public class Inlist<T extends Inlist<T>> {
|
||||
@Override
|
||||
public T next() {
|
||||
if (cur == null)
|
||||
throw new IllegalStateException();
|
||||
throw new IllegalStateException("'cur' item is null");
|
||||
|
||||
Inlist tmp = cur;
|
||||
cur = cur.next;
|
||||
|
Loading…
x
Reference in New Issue
Block a user