summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/ioutils/blocks
diff options
context:
space:
mode:
Diffstat (limited to 'base/src/main/java/bjc/utils/ioutils/blocks')
-rw-r--r--base/src/main/java/bjc/utils/ioutils/blocks/SerialBlockReader.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/base/src/main/java/bjc/utils/ioutils/blocks/SerialBlockReader.java b/base/src/main/java/bjc/utils/ioutils/blocks/SerialBlockReader.java
index 02483c1..66ebd66 100644
--- a/base/src/main/java/bjc/utils/ioutils/blocks/SerialBlockReader.java
+++ b/base/src/main/java/bjc/utils/ioutils/blocks/SerialBlockReader.java
@@ -2,6 +2,7 @@ package bjc.utils.ioutils.blocks;
import java.io.IOException;
import java.util.Deque;
+import java.util.LinkedList;
/**
* Provides a means of concatenating two block readers.
@@ -21,6 +22,8 @@ public class SerialBlockReader implements BlockReader {
* The readers to pull from, in the order to pull from them.
*/
public SerialBlockReader(final BlockReader... readers) {
+ readerQueue = new LinkedList<>();
+
for(final BlockReader reader : readers) {
readerQueue.add(reader);
}