diff --git a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java index a9d2a7244..edda4ac74 100644 --- a/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java +++ b/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java @@ -1903,13 +1903,12 @@ private int calculateOffsetForMultiAttributeFilter(Node node, int offset, String int initialOffset = 1; // Checking the number of matches till the original offset. - int skippedUserCount; boolean paginationRequest = false; Set skippedUsers = getFilteredUsersFromMultiAttributeFiltering(node, initialOffset, offset, sortBy, sortOrder, domainName, paginationRequest); - skippedUserCount = skippedUsers.size(); + int skippedUserCount = skippedUsers.size(); // Calculate the new offset and return return offset - skippedUserCount;