summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCGantert345 <57003061+CGantert345@users.noreply.github.com>2022-04-11 09:30:06 +0200
committerCGantert345 <57003061+CGantert345@users.noreply.github.com>2022-04-11 09:30:06 +0200
commit0ea854b3232f1dc33bb55f2ef9946f72dc40ed21 (patch)
tree84d4b4aae86caa037b77e60d18c876b6ce8c6999
parentnullpointer exception fixed in dynamic content of dosipas (diff)
downloadUIC-barcode-0ea854b3232f1dc33bb55f2ef9946f72dc40ed21.tar
UIC-barcode-0ea854b3232f1dc33bb55f2ef9946f72dc40ed21.tar.gz
UIC-barcode-0ea854b3232f1dc33bb55f2ef9946f72dc40ed21.tar.bz2
UIC-barcode-0ea854b3232f1dc33bb55f2ef9946f72dc40ed21.tar.lz
UIC-barcode-0ea854b3232f1dc33bb55f2ef9946f72dc40ed21.tar.xz
UIC-barcode-0ea854b3232f1dc33bb55f2ef9946f72dc40ed21.tar.zst
UIC-barcode-0ea854b3232f1dc33bb55f2ef9946f72dc40ed21.zip
-rw-r--r--src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java b/src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java
index 00b5824..a4d38c6 100644
--- a/src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java
+++ b/src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java
@@ -162,8 +162,9 @@ public class DynamicContentCoder {
content.setGeoCoordinate(getGeoCoordinate(asn.getGeoCoordinate()));
- content.setTimeStamp(asn.getTimeStamp().getTimeAsDate());
-
+ if (asn.getTimeStamp() != null) {
+ content.setTimeStamp(asn.getTimeStamp().getTimeAsDate());
+ }
return content;