You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Rajkumar Selvaraj (Jira)" <ji...@apache.org> on 2023/12/28 07:44:00 UTC
[jira] [Created] (FINERACT-2034) Handle Null Loan Cycle Counter in Loan Product Assignment for Borrow Cycle Enabled Products
Rajkumar Selvaraj created FINERACT-2034:
-------------------------------------------
Summary: 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
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)