mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
RM-2113. Acting on review comments.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@103781 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -101,7 +101,14 @@ public final class UserQueryParams
|
||||
|
||||
if (otherElems != null)
|
||||
{
|
||||
elementList.addAll(asList(otherElems));
|
||||
final List<T> tList = asList(otherElems);
|
||||
final int firstNull = tList.indexOf(null);
|
||||
if (firstNull != -1)
|
||||
{
|
||||
// "+ 2" so that position 1 points to 'firstElem' and so on through otherElems.
|
||||
throw new IllegalArgumentException("Unexpected null element at position " + firstNull + 2);
|
||||
}
|
||||
elementList.addAll(tList);
|
||||
}
|
||||
|
||||
return elementList;
|
||||
|
Reference in New Issue
Block a user