We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b95e4cc commit 50afdf9Copy full SHA for 50afdf9
1 file changed
src/main/java/com/iemr/common/service/grievance/GrievanceHandlingServiceImpl.java
@@ -429,6 +429,9 @@ public String getGrievanceDetailsWithRemarks(String request) throws Exception {
429
String fromDate = requestObj.optString("StartDate");
430
String toDate = requestObj.optString("EndDate");
431
432
+ if (fromDate == null || toDate == null) {
433
+ throw new IllegalArgumentException("fromDate and toDate are required");
434
+ }
435
// Convert StartDate and EndDate to Date objects
436
Date startDateStr = parseDate(fromDate);
437
Date endDateStr = parseDate(toDate);
0 commit comments