This commit is contained in:
Lucio Lelii 2018-06-21 10:49:23 +00:00
parent 72f8f08cd5
commit 8beac0b024
1 changed files with 2 additions and 1 deletions

View File

@ -61,7 +61,8 @@ public class VREQueryRetriever implements Callable<List<Item>> {
while (it.hasNext())
cachedList.add(ItemHandler.getItem(it.nextNode(), Arrays.asList("hl:accounting")));
logger.trace("creating objects took {}",System.currentTimeMillis()-start);
return cachedList.subList(0, 10);
if (cachedList.size()<=10) return cachedList;
else return cachedList.subList(0, 10);
} catch (Exception e) {
logger.error("error querying vre {}",vreFolder.getTitle(),e);
throw new RuntimeException(e);