mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Search for undeclared records results in exception
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/DEV/DODRECERT@51218 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,6 +21,7 @@ package org.alfresco.module.org_alfresco_module_rm.script.slingshot;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.io.UnsupportedEncodingException;
|
import java.io.UnsupportedEncodingException;
|
||||||
import java.net.URLEncoder;
|
import java.net.URLEncoder;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -201,12 +202,17 @@ public class RMSearchGet extends DeclarativeWebScript
|
|||||||
personDataCache = new HashMap<String, String>(57);
|
personDataCache = new HashMap<String, String>(57);
|
||||||
|
|
||||||
// Process the result items
|
// Process the result items
|
||||||
Item[] items = new Item[results.size()];
|
List<Item> items = new ArrayList<Item>(results.size());
|
||||||
int index = 0;
|
|
||||||
for (NodeRef nodeRef : results)
|
for (NodeRef nodeRef : results)
|
||||||
{
|
{
|
||||||
items[index] = new Item(nodeRef);
|
// FIXME: This is a workaround for DOD Recert
|
||||||
index++;
|
// TC 3-3 Create User Groups
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Item item = new Item(nodeRef);
|
||||||
|
items.add(item);
|
||||||
|
}
|
||||||
|
catch(Exception e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return model
|
// Return model
|
||||||
|
Reference in New Issue
Block a user