Skip to content

Commit

Permalink
[BACKLOG-40617] - Automated test failing with index java.lang.IndexOu…
Browse files Browse the repository at this point in the history
…tOfBoundsException: Index 5 out of bounds for length 5
  • Loading branch information
andreramos89 committed May 6, 2024
1 parent 7bb5b14 commit af0ac60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ public Result execute( Result result, int nr ) throws KettleException {
List<RowMetaAndData> rows = new ArrayList<RowMetaAndData>( result.getRows() );

while ( ( first && !execPerRow )
|| ( execPerRow && !rows.isEmpty() && iteration <= rows.size() && result.getNrErrors() == 0 )
|| ( execPerRow && !rows.isEmpty() && iteration < rows.size() && result.getNrErrors() == 0 )
|| ( execPerRow && rows.isEmpty() && iteration <= rows.size() && shouldConsiderOldBehaviourForEveryInputRow() ) ) {

first = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ public Result execute( Result result, int nr ) throws KettleException {
List<RowMetaAndData> rows = new ArrayList<RowMetaAndData>( result.getRows() );

while ( ( first && !execPerRow )
|| ( execPerRow && !rows.isEmpty() && iteration <= rows.size() && result.getNrErrors() == 0 )
|| ( execPerRow && !rows.isEmpty() && iteration < rows.size() && result.getNrErrors() == 0 )
|| ( execPerRow && rows.isEmpty() && iteration <= rows.size() && shouldConsiderOldBehaviourForEveryInputRow() )
&& !parentJob.isStopped() ) {
// Clear the result rows of the result
Expand Down

0 comments on commit af0ac60

Please sign in to comment.