Fixed null check issue

This commit is contained in:
rajesh
2024-12-19 17:32:23 +05:30
parent 9c0acfb831
commit c615bbe617

View File

@@ -171,8 +171,10 @@ public class ApplicationEvaluationDao {
amendmentDocumentResponseBean.setFileDetail(documentResponseBeans);
}
amendmentDocumentResponseBean.setFieldId("amend_" + applicationAmendmentRequestEntity.getId());
amendmentDocumentResponseBean.setLabel(amendmentDetails.getAmendmentNotes());
amendmentDocumentResponseBean.setValid(amendmentDetails.getValid());
amendmentDocumentResponseBeans.add(amendmentDocumentResponseBean);
}
List<AmendmentFormField> amendmentFormFields = Utils.convertJsonStringToList(formField, AmendmentFormField.class);
if (amendmentFormFields != null) {
@@ -197,8 +199,6 @@ public class ApplicationEvaluationDao {
amendmentDocumentResponseBeans.add(formFieldResponseBean);
}
}
amendmentDocumentResponseBeans.add(amendmentDocumentResponseBean);
}
response.setAmendmentDetails(amendmentDocumentResponseBeans);