summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/uic/barcode
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/uic/barcode')
-rw-r--r--src/main/java/org/uic/barcode/staticFrame/StaticFrame.java2
-rw-r--r--src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java b/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
index 6b577c5..bf97acb 100644
--- a/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
+++ b/src/main/java/org/uic/barcode/staticFrame/StaticFrame.java
@@ -507,7 +507,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);
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java
index 6b1d5e1..521f32a 100644
--- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java
+++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/VoucherData.java
@@ -55,7 +55,7 @@ public class VoucherData extends Object {
@Asn1Optional public String productOwnerIA5;
@FieldOrder(order = 4)
- @IntRange(minValue=1,maxValue=32000)
+ @IntRange(minValue=0,maxValue=32000)
@Asn1Optional public Long productIdNum;
@FieldOrder(order = 5)