Skip to content

Commit

Permalink
BZ-1031306: fixing NPE for puzzle HARD 4
Browse files Browse the repository at this point in the history
  • Loading branch information
etirelli committed Nov 16, 2013
1 parent 4684c4a commit cdc587d
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -190,7 +190,7 @@ public void addAllInserts(LeftTupleSets tupleSets) {
}
LeftTuple leftTuple = tupleSetsImpl.getInsertFirst();
last.setStagedNext( leftTuple );
leftTuple.setStagePrevious( leftTuple );
leftTuple.setStagePrevious( last );
insertSize = insertSize + tupleSetsImpl.insertSize();
}
tupleSetsImpl.insertSize = 0;
Expand All @@ -213,7 +213,7 @@ public void addAllDeletes(LeftTupleSets tupleSets) {
}
LeftTuple leftTuple = tupleSets.getDeleteFirst();
last.setStagedNext( leftTuple );
leftTuple.setStagePrevious( leftTuple );
leftTuple.setStagePrevious( last );
deleteSize = deleteSize + tupleSetsImpl.deleteSize();
}
tupleSetsImpl.deleteFirst = null;
Expand All @@ -236,7 +236,7 @@ public void addAllUpdates(LeftTupleSets tupleSets) {
}
LeftTuple leftTuple = tupleSetsImpl.getUpdateFirst();
last.setStagedNext( leftTuple );
leftTuple.setStagePrevious( leftTuple );
leftTuple.setStagePrevious( last );
updateSize = updateSize + tupleSetsImpl.updateSize();
}
tupleSetsImpl.updateFirst = null;
Expand Down

0 comments on commit cdc587d

Please sign in to comment.