ilgrosso commented on a change in pull request #304:
URL: https://github.com/apache/syncope/pull/304#discussion_r795678975



##########
File path: core/logic/src/main/java/org/apache/syncope/core/logic/TaskLogic.java
##########
@@ -459,8 +462,9 @@ public void actionJob(final String key, final JobAction 
action) {
             final Date since,
             final List<ExecStatus> statuses,
             final List<String> resources) {
-        return taskDAO.purgePropagations(since, statuses,
-                
resources.stream().map(resourceDAO::find).filter(Objects::nonNull).collect(Collectors.toList()));
+        return taskDAO.purgePropagations(since, statuses, resources == null 
+                ? Collections.<ExternalResource>emptyList()

Review comment:
       why `Collections.<ExternalResource>emptyList()` and not simply `null`? 
There is already a check in the DAO




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to