You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by my...@apache.org on 2018/01/22 15:24:51 UTC
[fineract-cn-customer] 14/28: Check created by before converting to
iso string
This is an automated email from the ASF dual-hosted git repository.
myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-customer.git
commit 6e7b18ed1593e7ccd0953eca39a734a7c647850f
Author: Mark <ma...@gmail.com>
AuthorDate: Tue May 23 17:19:17 2017 +0200
Check created by before converting to iso string
---
.../customer/service/internal/mapper/IdentificationCardMapper.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/service/src/main/java/io/mifos/customer/service/internal/mapper/IdentificationCardMapper.java b/service/src/main/java/io/mifos/customer/service/internal/mapper/IdentificationCardMapper.java
index b112b85..25ff76b 100644
--- a/service/src/main/java/io/mifos/customer/service/internal/mapper/IdentificationCardMapper.java
+++ b/service/src/main/java/io/mifos/customer/service/internal/mapper/IdentificationCardMapper.java
@@ -42,8 +42,10 @@ public final class IdentificationCardMapper {
identificationCard.setExpirationDate(ExpirationDate.fromLocalDate(identificationCardEntity.getExpirationDate()));
identificationCard.setIssuer(identificationCardEntity.getIssuer());
- identificationCard.setCreatedBy(identificationCardEntity.getCreatedBy());
- identificationCard.setCreatedOn(DateConverter.toIsoString(identificationCardEntity.getCreatedOn()));
+ if (identificationCardEntity.getCreatedBy() != null ) {
+ identificationCard.setCreatedBy(identificationCardEntity.getCreatedBy());
+ identificationCard.setCreatedOn(DateConverter.toIsoString(identificationCardEntity.getCreatedOn()));
+ }
if (identificationCardEntity.getLastModifiedBy() != null) {
identificationCard.setLastModifiedBy(identificationCardEntity.getLastModifiedBy());
--
To stop receiving notification emails like this one, please contact
myrle@apache.org.