Permalink
Browse files

fixed bug with null pointer reference for greedy extended one tiered

  • Loading branch information...
Rebecca Taft
Rebecca Taft committed Mar 13, 2014
1 parent ddac9d8 commit 648d965579cdbc25f142c6194ea81ffec2f40025
@@ -75,6 +75,9 @@ public Plan computePlan(ArrayList<Map<Long, Long>> hotTuplesList, Map<Integer, L
List<Plan.Range> oldRanges = aPlan.getRangeValues(i, r.from, r.to);
for(Plan.Range oldRange : oldRanges) {
aPlan.removeRange(i, oldRange.from);
if(!aPlan.hasPartition(dstPartition)) {
aPlan.addPartition(dstPartition);
}
aPlan.addRange(dstPartition, Math.max(oldRange.from, r.from), Math.min(oldRange.to, r.to));
if(oldRange.from < r.from) {

0 comments on commit 648d965

Please sign in to comment.