diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2022-04-11 09:30:06 +0200 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2022-04-11 09:30:06 +0200 |
commit | 0ea854b3232f1dc33bb55f2ef9946f72dc40ed21 (patch) | |
tree | 84d4b4aae86caa037b77e60d18c876b6ce8c6999 /src/main/java/org/uic | |
parent | nullpointer exception fixed in dynamic content of dosipas (diff) | |
download | UIC-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 |
Diffstat (limited to 'src/main/java/org/uic')
-rw-r--r-- | src/main/java/org/uic/barcode/dynamicContent/api/DynamicContentCoder.java | 5 |
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;
|