From: <tho...@us...> - 2010-08-02 23:16:19
|
Revision: 3395 http://bigdata.svn.sourceforge.net/bigdata/?rev=3395&view=rev Author: thompsonbry Date: 2010-08-02 23:16:12 +0000 (Mon, 02 Aug 2010) Log Message: ----------- Handled edge case when the statement buffer is empty Modified Paths: -------------- trunk/bigdata-rdf/src/java/com/bigdata/rdf/util/Splitter.java Modified: trunk/bigdata-rdf/src/java/com/bigdata/rdf/util/Splitter.java =================================================================== --- trunk/bigdata-rdf/src/java/com/bigdata/rdf/util/Splitter.java 2010-08-02 21:37:44 UTC (rev 3394) +++ trunk/bigdata-rdf/src/java/com/bigdata/rdf/util/Splitter.java 2010-08-02 23:16:12 UTC (rev 3395) @@ -916,6 +916,11 @@ * {@inheritDoc} */ public long flush() { + if (numStmts == 0) { + // Nothing to write. + return 0; + } + { // The output directory for the next file. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |