summaryrefslogtreecommitdiffstats
path: root/src/org/uic/ticket/api
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2020-12-18 17:20:12 +0100
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2020-12-18 17:20:12 +0100
commit8f7af5fde7283b519a2efccdaf84c63ecd9c680d (patch)
treeff9933a419a241b6e5c230c911cab8e46aa288fa /src/org/uic/ticket/api
parentMerge branch 'master' of https://github.com/UnionInternationalCheminsdeFer/UIC-barcode (diff)
downloadUIC-barcode-8f7af5fde7283b519a2efccdaf84c63ecd9c680d.tar
UIC-barcode-8f7af5fde7283b519a2efccdaf84c63ecd9c680d.tar.gz
UIC-barcode-8f7af5fde7283b519a2efccdaf84c63ecd9c680d.tar.bz2
UIC-barcode-8f7af5fde7283b519a2efccdaf84c63ecd9c680d.tar.lz
UIC-barcode-8f7af5fde7283b519a2efccdaf84c63ecd9c680d.tar.xz
UIC-barcode-8f7af5fde7283b519a2efccdaf84c63ecd9c680d.tar.zst
UIC-barcode-8f7af5fde7283b519a2efccdaf84c63ecd9c680d.zip
Diffstat (limited to 'src/org/uic/ticket/api')
-rw-r--r--src/org/uic/ticket/api/asn/omv1/uicBarcodeV1finalDelayConfirmation1.3.asn2
-rw-r--r--src/org/uic/ticket/api/utils/Api2OpenAsnEncoderV2.java4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/org/uic/ticket/api/asn/omv1/uicBarcodeV1finalDelayConfirmation1.3.asn b/src/org/uic/ticket/api/asn/omv1/uicBarcodeV1finalDelayConfirmation1.3.asn
index c850c75..dfb9be0 100644
--- a/src/org/uic/ticket/api/asn/omv1/uicBarcodeV1finalDelayConfirmation1.3.asn
+++ b/src/org/uic/ticket/api/asn/omv1/uicBarcodeV1finalDelayConfirmation1.3.asn
@@ -9,7 +9,7 @@ ASN-Module DEFINITIONS AUTOMATIC TAGS ::= BEGIN
-- ##############################################################################################
-- #
--- # Final version 1.3 - value 1 in the UIC bar code version element
+-- # Final version 1.3 - value 13 in the UIC bar code version element
-- # (see element 2 in U_FLEX record definition in leaflet 918.9)
-- #
-- ##############################################################################################
diff --git a/src/org/uic/ticket/api/utils/Api2OpenAsnEncoderV2.java b/src/org/uic/ticket/api/utils/Api2OpenAsnEncoderV2.java
index c651192..7e5a6dc 100644
--- a/src/org/uic/ticket/api/utils/Api2OpenAsnEncoderV2.java
+++ b/src/org/uic/ticket/api/utils/Api2OpenAsnEncoderV2.java
@@ -2215,7 +2215,9 @@ public class Api2OpenAsnEncoderV2 {
asnTraveler.setFirstName(traveler.getFirstName());
asnTraveler.setSecondName(traveler.getSecondName());
asnTraveler.setLastName(traveler.getLastName());
- asnTraveler.setGender(GenderType.valueOf(traveler.getGender().toString()));
+ if (traveler.getGender() != null) {
+ asnTraveler.setGender(GenderType.valueOf(traveler.getGender().toString()));
+ }
asnTraveler.setIdCard(UicEncoderUtils.getIA5(traveler.getIdCard()));
asnTraveler.setPassportId(UicEncoderUtils.getIA5(traveler.getPassportId()));
asnTraveler.setTitle(UicEncoderUtils.getIA5(traveler.getTitle()));