Permalink
Browse files

fixed incorrect behaviour is StringWriterProvider.isEmpty when runnin…

…g with batch disabled.
  • Loading branch information...
1 parent b0586b2 commit 5d4ae6ff386f8e8765f9def09a67b59a5fb7b9e9 @jbax jbax committed Oct 18, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/univocity/api/common/StringWriterProvider.java
@@ -59,6 +59,6 @@ public final String getString() {
@Override
public final boolean isEmpty() {
- return string.isEmpty();
+ return string.isEmpty() && writer.getBuffer().length() == 0;
}
}

0 comments on commit 5d4ae6f

Please sign in to comment.