Updated code for table validation
This commit is contained in:
@@ -160,7 +160,7 @@ public class FieldValidator {
|
||||
|
||||
|
||||
public FieldValidator validateCustomTableValidation(String value, String customRule, String fieldId, ContentResponseBean contentResponseBean) {
|
||||
if (customRule == null || value == null) {
|
||||
if (customRule == null ) {
|
||||
return this; // No custom rule to validate
|
||||
}
|
||||
|
||||
@@ -168,6 +168,7 @@ public class FieldValidator {
|
||||
|
||||
case GepafinConstant.NON_EMPTY_TABLES:
|
||||
try {
|
||||
|
||||
checkTableValidation(value, fieldId, contentResponseBean, errors);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
@@ -186,6 +187,7 @@ public class FieldValidator {
|
||||
.findFirst() // Get the first matching result
|
||||
.orElse(null); // Default to null if no match
|
||||
|
||||
|
||||
if (tableType!=null){
|
||||
try {
|
||||
Object object = PdfUtils.extractRows(value);;
|
||||
|
||||
Reference in New Issue
Block a user