commit | 3212d591a1e4705ab75100d337ac348f1640b6e2 | [log] [tgz] |
---|---|---|
author | vinayakb <vinayakb@123451ca-8445-de46-9d55-352943316053> | Tue Dec 07 01:52:20 2010 +0000 |
committer | vinayakb <vinayakb@123451ca-8445-de46-9d55-352943316053> | Tue Dec 07 01:52:20 2010 +0000 |
tree | 573091c9e0fb1681d8b3e329710257e7d9a513e0 | |
parent | 217b6606bb9d36354fb28193c680479e61946013 [diff] |
Fixed bug when sorting empty input git-svn-id: https://hyracks.googlecode.com/svn/trunk@227 123451ca-8445-de46-9d55-352943316053
diff --git a/hyracks/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/ExternalSortRunMerger.java b/hyracks/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/ExternalSortRunMerger.java index 91114b2..87c021b 100644 --- a/hyracks/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/ExternalSortRunMerger.java +++ b/hyracks/hyracks-dataflow-std/src/main/java/edu/uci/ics/hyracks/dataflow/std/sort/ExternalSortRunMerger.java
@@ -69,7 +69,7 @@ } try { if (runs.size() <= 0) { - if (frameSorter != null) { + if (frameSorter != null && frameSorter.getFrameCount() > 0) { frameSorter.flushFrames(writer); } } else {