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
|
@Override
|
||||||
public T next() {
|
public T next() {
|
||||||
if (cur == null)
|
if (cur == null)
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException("'cur' item is null");
|
||||||
|
|
||||||
Inlist tmp = cur;
|
Inlist tmp = cur;
|
||||||
cur = cur.next;
|
cur = cur.next;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user