In the user security clearance page if users cannot be found an error message should not be displayed.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@105631 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2015-06-05 14:28:04 +00:00
parent 1eed4ddb2b
commit 9b61610016

View File

@@ -96,7 +96,7 @@ public class UserSecurityClearanceGet extends AbstractRmWebScript
int total = getTotal(usersSecurityClearance).intValue();
int maxItems = userQueryParams.getMaxItems();
if (getPageNumber(req) > Math.ceil((double) total / (double) maxItems))
if (total != 0 && getPageNumber(req) > Math.ceil((double) total / (double) maxItems))
{
throw new WebScriptException("The requested page is not valid");
}