diff --git a/municipal-services/mgramseva-ifix-adapter/src/main/java/org/egov/mgramsevaifixadaptor/consumer/MgramsevaAdapterDemandConsumer.java b/municipal-services/mgramseva-ifix-adapter/src/main/java/org/egov/mgramsevaifixadaptor/consumer/MgramsevaAdapterDemandConsumer.java index 66f370968..d99a443d7 100644 --- a/municipal-services/mgramseva-ifix-adapter/src/main/java/org/egov/mgramsevaifixadaptor/consumer/MgramsevaAdapterDemandConsumer.java +++ b/municipal-services/mgramseva-ifix-adapter/src/main/java/org/egov/mgramsevaifixadaptor/consumer/MgramsevaAdapterDemandConsumer.java @@ -125,6 +125,9 @@ else if(demand.getStatus().toString().equalsIgnoreCase(Constants.ACTIVE)){ } } demandRequest.getDemands().removeAll(demandListToRemove); + if(demandRequest.getDemands().isEmpty()) { + return; + } log.info("demandRequest after: "+new Gson().toJson(demandRequest)); }