summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/uic/barcode/staticFrame/StaticFrame.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java b/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
index 8dc1adb..30bbe3f 100644
--- a/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
+++ b/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
@@ -506,7 +506,7 @@ public class StaticFrame {
inflater.setInput(inflaterInput);
while (!inflater.finished()) {
int count = inflater.inflate(inflatedDataBuffer,0,2000);
- if (inflater.needsDictionary()) {
+ if (inflater.needsDictionary() || count == 0) {
break;
}
outputStream.write(inflatedDataBuffer, 0, count);