ShruthiRajaram closed pull request #490: FINERACT-662 activation date null check
URL: https://github.com/apache/fineract/pull/490
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/group/domain/Group.java
 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/group/domain/Group.java
index a40aad7e8..b0874ce7d 100644
--- 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/group/domain/Group.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/group/domain/Group.java
@@ -46,10 +46,10 @@
 import org.apache.fineract.infrastructure.codes.domain.CodeValue;
 import org.apache.fineract.infrastructure.core.api.JsonCommand;
 import org.apache.fineract.infrastructure.core.data.ApiParameterError;
+import 
org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
 import 
org.apache.fineract.infrastructure.core.exception.GeneralPlatformDomainRuleException;
 import 
org.apache.fineract.infrastructure.core.exception.PlatformApiDataValidationException;
 import org.apache.fineract.infrastructure.core.service.DateUtils;
-import 
org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
 import 
org.apache.fineract.infrastructure.security.service.RandomPasswordGenerator;
 import org.apache.fineract.organisation.office.domain.Office;
 import org.apache.fineract.organisation.staff.domain.Staff;
@@ -334,7 +334,9 @@ public boolean isPending() {
             actualChanges.put(GroupingTypesApiConstants.localeParamName, 
localeAsInput);
 
             final LocalDate newValue = 
command.localDateValueOfParameterNamed(GroupingTypesApiConstants.activationDateParamName);
-            this.activationDate = newValue.toDate();
+                       if (newValue != null) {
+                               this.activationDate = newValue.toDate();
+                       }
         }
         
         if 
(command.isChangeInStringParameterNamed(GroupingTypesApiConstants.accountNoParamName,
 this.accountNumber)) {


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to