Aman-Mittal commented on code in PR #5268:
URL: https://github.com/apache/fineract/pull/5268#discussion_r2649258341
##########
fineract-provider/src/main/java/org/apache/fineract/portfolio/calendar/serialization/CalendarCommandFromApiJsonDeserializer.java:
##########
@@ -153,11 +153,11 @@ public void validateForCreate(final String json) {
.inMinMaxRange(CalendarEntityType.getMinValue(),
CalendarEntityType.getMaxValue());
if
(this.fromApiJsonHelper.parameterExists(CalendarSupportedParameters.REPEATING.getValue(),
element)) {
- // FIXME - Throws NullPointerException when boolean value is null
- final boolean repeating =
this.fromApiJsonHelper.extractBooleanNamed(CalendarSupportedParameters.REPEATING.getValue(),
element);
+ // Fixed: Use Boolean wrapper to avoid NullPointerException when
value is null
Review Comment:
In case of fixed remove the comment entirely,
--
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]