Skip to content

Commit c77acff

Browse files
committed
add missing guard. fixes GR-22252
1 parent 9b865df commit c77acff

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/iterator

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/iterator/PZipBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Object doEmpty(@SuppressWarnings("unused") PZip self) {
6161
throw raise(PythonErrorType.StopIteration);
6262
}
6363

64-
@Specialization
64+
@Specialization(guards = "!isEmpty(self.getIterators())")
6565
Object doNext(VirtualFrame frame, PZip self,
6666
@Cached("create()") GetNextNode next) {
6767
Object[] iterators = self.getIterators();

0 commit comments

Comments
 (0)