Small checks
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/b59af727 Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/b59af727 Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/b59af727 Branch: refs/heads/master Commit: b59af727695281420bf75136253f142d0b29f18a Parents: dd152d8 Author: Francesco Chicchiriccò <ilgro...@apache.org> Authored: Tue Oct 17 18:11:20 2017 +0200 Committer: Francesco Chicchiriccò <ilgro...@apache.org> Committed: Tue Oct 17 18:11:27 2017 +0200 ---------------------------------------------------------------------- .../syncope/core/provisioning/java/MappingManagerImpl.java | 4 +++- .../syncope/core/rest/cxf/service/ResourceServiceImpl.java | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/syncope/blob/b59af727/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java ---------------------------------------------------------------------- diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java index 640aaba..a19d37f 100644 --- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java +++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/MappingManagerImpl.java @@ -177,7 +177,9 @@ public class MappingManagerImpl implements MappingManager { values.addAll(alreadyAdded.getValue()); } - values.addAll(preparedAttr.getRight().getValue()); + if (preparedAttr.getRight().getValue() != null) { + values.addAll(preparedAttr.getRight().getValue()); + } attributes.add(AttributeBuilder.build(preparedAttr.getRight().getName(), values)); } http://git-wip-us.apache.org/repos/asf/syncope/blob/b59af727/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/ResourceServiceImpl.java ---------------------------------------------------------------------- diff --git a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/ResourceServiceImpl.java b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/ResourceServiceImpl.java index ed0df7c..2b76dfc 100644 --- a/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/ResourceServiceImpl.java +++ b/core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/ResourceServiceImpl.java @@ -130,6 +130,7 @@ public class ResourceServiceImpl extends AbstractServiceImpl implements Resource if (StringUtils.isNotBlank(result.getPagedResultsCookie())) { result.setNext(builder. replaceQueryParam(PARAM_CONNID_PAGED_RESULTS_COOKIE, result.getPagedResultsCookie()). + replaceQueryParam(PARAM_SIZE, listQuery.getSize()). build()); }