summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2021-11-02 13:41:25 +0100
committerGitHub <noreply@github.com>2021-11-02 13:41:25 +0100
commit53adca36420ac7d14718ca690246824d682e76b4 (patch)
tree0d97e87c2490bf01381eab69418dd082ef8d12d2 /src/main/java/org
parentMerge pull request #31 from irrationalism/feature/android-backward-compatibility-regarding-StandardCharsets (diff)
parent- fix on null pointer exception for tickets created ad midnight (diff)
downloadUIC-barcode-53adca36420ac7d14718ca690246824d682e76b4.tar
UIC-barcode-53adca36420ac7d14718ca690246824d682e76b4.tar.gz
UIC-barcode-53adca36420ac7d14718ca690246824d682e76b4.tar.bz2
UIC-barcode-53adca36420ac7d14718ca690246824d682e76b4.tar.lz
UIC-barcode-53adca36420ac7d14718ca690246824d682e76b4.tar.xz
UIC-barcode-53adca36420ac7d14718ca690246824d682e76b4.tar.zst
UIC-barcode-53adca36420ac7d14718ca690246824d682e76b4.zip
Diffstat (limited to '')
-rw-r--r--src/main/java/org/uic/barcode/ticket/api/asn/omv1/IssuingData.java2
-rw-r--r--src/main/java/org/uic/barcode/ticket/api/asn/omv2/IssuingData.java2
-rw-r--r--src/main/java/org/uic/barcode/ticket/api/asn/omv3/IssuingData.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/IssuingData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/IssuingData.java
index 5f0e345..5a150dc 100644
--- a/src/main/java/org/uic/barcode/ticket/api/asn/omv1/IssuingData.java
+++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv1/IssuingData.java
@@ -326,7 +326,7 @@ public class IssuingData extends Object {
this.issuingYear = new Long( cal.get(Calendar.YEAR));
this.issuingDay = new Long (cal.get(Calendar.DAY_OF_YEAR));
int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE);
- if (time > 0) {
+ if (time >= 0) {
this.issuingTime = new Long (time );
}
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv2/IssuingData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv2/IssuingData.java
index 2491d79..74c516c 100644
--- a/src/main/java/org/uic/barcode/ticket/api/asn/omv2/IssuingData.java
+++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv2/IssuingData.java
@@ -326,7 +326,7 @@ public class IssuingData extends Object {
this.issuingYear = new Long( cal.get(Calendar.YEAR));
this.issuingDay = new Long (cal.get(Calendar.DAY_OF_YEAR));
int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE);
- if (time > 0) {
+ if (time >= 0) {
this.issuingTime = new Long (time );
}
diff --git a/src/main/java/org/uic/barcode/ticket/api/asn/omv3/IssuingData.java b/src/main/java/org/uic/barcode/ticket/api/asn/omv3/IssuingData.java
index 537a42a..f8e8477 100644
--- a/src/main/java/org/uic/barcode/ticket/api/asn/omv3/IssuingData.java
+++ b/src/main/java/org/uic/barcode/ticket/api/asn/omv3/IssuingData.java
@@ -326,7 +326,7 @@ public class IssuingData extends Object {
this.issuingYear = new Long( cal.get(Calendar.YEAR));
this.issuingDay = new Long (cal.get(Calendar.DAY_OF_YEAR));
int time = cal.get(Calendar.HOUR_OF_DAY) * 60 + cal.get(Calendar.MINUTE);
- if (time > 0) {
+ if (time >= 0) {
this.issuingTime = new Long (time );
}