galovics commented on code in PR #2771:
URL: https://github.com/apache/fineract/pull/2771#discussion_r1033478517


##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/LoanWritePlatformServiceJpaRepositoryImpl.java:
##########
@@ -2119,6 +2119,10 @@ public CommandProcessingResult undoWriteOff(Long loanId) 
{
         }
         LocalDate recalculateFrom = null;
         LoanTransaction writeOffTransaction = loan.findWriteOffTransaction();
+        if (writeOffTransaction == null) {

Review Comment:
   You sure about this? The code will not fail if this is null and later on 
there's a null-check.
   
   Can you pls elaborate?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to