diff --git a/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/CorrelationConfirmationEvaluator.java b/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/CorrelationConfirmationEvaluator.java index edf0d00b0be..97bfc6dac8f 100644 --- a/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/CorrelationConfirmationEvaluator.java +++ b/model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/sync/CorrelationConfirmationEvaluator.java @@ -213,29 +213,16 @@ private List> findUsersByCorrelationRule(Cl throw new ExpressionEvaluationException("Couldn't convert query.", ex); } - List> users = null; + List> users; try { - // query = new QueryType(); - // query.setFilter(filter); - if (LOGGER.isTraceEnabled()) { - LOGGER.trace("SYNCHRONIZATION: CORRELATION: expression for results in filter\n{}", - new Object[] {q.debugDump() }); - } - PagingType paging = new PagingType(); - // ObjectQuery q = QueryConvertor.createObjectQuery(UserType.class, - // query, prismContext); + LOGGER.trace("SYNCHRONIZATION: CORRELATION: expression for results in filter\n{}", q.debugDumpLazily()); users = repositoryService.searchObjects(focusType, q, null, result); - - if (users == null) { - users = new ArrayList>(); - } } catch (RuntimeException ex) { LoggingUtils.logException(LOGGER, "Couldn't search users in repository, based on filter (simplified)\n{}.", ex, q.debugDump()); throw new SystemException( "Couldn't search users in repository, based on filter (See logs).", ex); } - return users; }