Skip to content

Commit

Permalink
Fixed review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashi1993 committed Nov 1, 2024
1 parent 24d8b34 commit 74cd6aa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.wso2.openbanking.accelerator.event.notifications.service.service.EventNotificationGenerator;
import com.wso2.openbanking.accelerator.event.notifications.service.service.EventPollingService;
import com.wso2.openbanking.accelerator.event.notifications.service.util.EventNotificationServiceUtil;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.identity.oauth2.IdentityOAuth2Exception;
Expand Down Expand Up @@ -58,7 +59,7 @@ public void run() {
try {
List<EventSubscription> subscriptionList = EventNotificationServiceUtil.getEventSubscriptionService()
.getEventSubscriptionsByClientId(notificationDTO.getClientId());
if (subscriptionList.isEmpty()) {
if (CollectionUtils.isEmpty(subscriptionList)) {
throw new OBEventNotificationException("No subscriptions found for the client ID: " +
notificationDTO.getClientId());
}
Expand Down

0 comments on commit 74cd6aa

Please sign in to comment.