fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nazeer1100...@apache.org
Subject [1/2] incubator-fineract git commit: FINERACT-179 issue resolved
Date Fri, 24 Jun 2016 14:08:14 GMT
Repository: incubator-fineract
Updated Branches:
  refs/heads/develop 8c5deb40c -> 9a2568d15


FINERACT-179 issue resolved


Project: http://git-wip-us.apache.org/repos/asf/incubator-fineract/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-fineract/commit/785589a4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-fineract/tree/785589a4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-fineract/diff/785589a4

Branch: refs/heads/develop
Commit: 785589a4fd3dd23ce3b5bb867b6798142760c50b
Parents: e2b0084
Author: venkatconflux <venkata.conflux@confluxtechnologies.com>
Authored: Fri Jun 24 19:23:53 2016 +0530
Committer: venkatconflux <venkata.conflux@confluxtechnologies.com>
Committed: Fri Jun 24 19:23:53 2016 +0530

----------------------------------------------------------------------
 .../service/LoanWritePlatformServiceJpaRepositoryImpl.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/785589a4/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
----------------------------------------------------------------------
diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
index 3fee3c9..db45fce 100755
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java
@@ -823,7 +823,7 @@ public class LoanWritePlatformServiceJpaRepositoryImpl implements LoanWritePlatf
         this.loanEventApiJsonValidator.validateTransaction(command.json());
 
         final Loan loan = this.loanAssembler.assembleFrom(loanId);
-        if(loan.status().isClosed() && loan.getLoanSubStatus().equals(LoanSubStatus.FORECLOSED.getValue()))
{
+        if(loan.status().isClosed() && loan.getLoanSubStatus() !=null &&
loan.getLoanSubStatus().equals(LoanSubStatus.FORECLOSED.getValue())) {
             final String defaultUserMessage = "The loan cannot reopend as it is foreclosed.";
             throw new LoanForeclosureException("loan.cannot.be.reopened.as.it.is.foreclosured",
defaultUserMessage,
                     loanId);


Mime
View raw message