Inlist: add exception message, fix

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

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