Merge pull request #696 from adamsaghy/bugfix/loanproductdata
FINERACT-839: NPE when creating a Loan for a client fix
This commit is contained in:
+7
-8
@@ -49,6 +49,7 @@ import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import net.sf.ehcache.util.FindBugsSuppressWarnings;
|
||||
|
||||
/**
|
||||
* Immutable data object to represent loan products.
|
||||
@@ -1134,17 +1135,15 @@ public class LoanProductData implements Serializable {
|
||||
if (isInterestRecalculationEnabled()) { return this.interestRecalculationData.getRecalculationCompoundingFrequencyInterval(); }
|
||||
return null;
|
||||
}
|
||||
|
||||
@FindBugsSuppressWarnings("NP_BOOLEAN_RETURN_NULL")
|
||||
public Boolean isCompoundingToBePostedAsTransaction() {
|
||||
if (isInterestRecalculationEnabled()) {
|
||||
return this.interestRecalculationData.isCompoundingToBePostedAsTransaction();
|
||||
} else {
|
||||
return !this.interestRecalculationData.isCompoundingToBePostedAsTransaction();
|
||||
}
|
||||
return isInterestRecalculationEnabled() ? this.interestRecalculationData.isCompoundingToBePostedAsTransaction() : null;
|
||||
}
|
||||
|
||||
@FindBugsSuppressWarnings("NP_BOOLEAN_RETURN_NULL")
|
||||
public Boolean allowCompoundingOnEod() {
|
||||
if (isInterestRecalculationEnabled()) {
|
||||
return this.interestRecalculationData.allowCompoundingOnEod();
|
||||
} return !this.interestRecalculationData.allowCompoundingOnEod();
|
||||
return isInterestRecalculationEnabled() ? this.interestRecalculationData.allowCompoundingOnEod() : null;
|
||||
}
|
||||
|
||||
public boolean canDefineInstallmentAmount() {
|
||||
|
||||
Reference in New Issue
Block a user