[
https://issues.apache.org/jira/browse/FINERACT-2034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rajkumar Selvaraj resolved FINERACT-2034.
-----------------------------------------
Resolution: Fixed
> Handle Null Loan Cycle Counter in Loan Product Assignment for Borrow Cycle
> Enabled Products
> -------------------------------------------------------------------------------------------
>
> Key: FINERACT-2034
> URL: https://issues.apache.org/jira/browse/FINERACT-2034
> Project: Apache Fineract
> Issue Type: Improvement
> Components: Loan
> Affects Versions: 1.8.4
> Reporter: Rajkumar Selvaraj
> Priority: Minor
> Fix For: 1.8.4
>
> Attachments: Screenshot (59).png
>
>
> When a loan product with the {{borrowcycle}} feature enabled is created
> without filling the required details, the product is successfully created.
> However, issues arise when this loan product is later assigned to a client.
> The problem occurs in the conditional logic that follows:
> * *Issue:* The conditional check on the {{loancycle}} counter assumes it
> will always have a numerical value. However, in cases where the
> {{borrowcycle}} is enabled but no specific details are provided, the
> {{loancycle}} counter is set to {{{}null{}}}.
> * *Impact:* This results in a {{NullPointerException}} during the execution
> of the conditional check, disrupting the normal flow of the application.
> *Proposed Solution:* To address this issue and ensure a smooth application
> flow, the conditional logic should be enhanced to account for scenarios where
> the {{loancycle}} counter is {{{}null{}}}. This may involve updating the
> conditional checks or setting a default value for {{loancycle}} when it is
> not explicitly provided during loan product creation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)