diff --git a/common-util/src/main/java/org/sunbird/common/request/RequestValidator.java b/common-util/src/main/java/org/sunbird/common/request/RequestValidator.java index cf2dbb716..5bd48d327 100644 --- a/common-util/src/main/java/org/sunbird/common/request/RequestValidator.java +++ b/common-util/src/main/java/org/sunbird/common/request/RequestValidator.java @@ -604,10 +604,7 @@ private static void validateUpdateBatchEndDate(Request request) { String startDate = (String) request.getRequest().get(JsonKey.START_DATE); String endDate = (String) request.getRequest().get(JsonKey.END_DATE); format.setLenient(false); - if (request.getRequest().containsKey(JsonKey.END_DATE) - && StringUtils.isNotEmpty(startDate) - && request.getRequest().containsKey(JsonKey.START_DATE) - && !StringUtils.isBlank(startDate)) { + if (StringUtils.isNotBlank(endDate) && StringUtils.isNotBlank(startDate)) { Date batchStartDate = null; Date batchEndDate = null; try {