We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef06783 commit 0ee4badCopy full SHA for 0ee4bad
src/main/java/com/comphenix/protocol/reflect/StructureModifierIterator.java
@@ -17,6 +17,7 @@
17
package com.comphenix.protocol.reflect;
18
19
import java.util.Iterator;
20
+import java.util.NoSuchElementException;
21
22
/**
23
* Provides iterator access to a {@link StructureModifier}
@@ -49,7 +50,7 @@ public boolean hasNext() {
49
50
*/
51
@Override
52
public StructureModifierIntermediate<T> next() {
- if (!this.hasNext()) return null;
53
+ if (!this.hasNext()) throw new NoSuchElementException();
54
return new StructureModifierIntermediate<T>(this.structure, this.index++);
55
}
56
0 commit comments