Inlist: add exception message, fix #974

This commit is contained in:
Emux 2023-01-24 11:12:31 +02:00
parent 79916df991
commit b0baf72462
No known key found for this signature in database
GPG Key ID: 64ED9980896038C3

View File

@ -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;