01-11-2013 02:47 PM
Caused by: java.lang.NullPointerException
at org.activiti.explorer.data.LazyLoadingContainer.getContainerProperty(LazyLoadingContainer.java:87)
at com.vaadin.ui.AbstractSelect.getContainerProperty(AbstractSelect.java:745)
at com.vaadin.ui.Table.refreshRenderedCells(Table.java:1550)
at com.vaadin.ui.Table.addContainerProperty(Table.java:3027)
at org.activiti.explorer.ui.management.identity.GroupSelectionPopupWindow.initGroupTable(GroupSelectionPopupWindow.java:82)
at org.activiti.explorer.ui.management.identity.GroupSelectionPopupWindow.<init>(GroupSelectionPopupWindow.java:64)
at org.activiti.explorer.ui.management.identity.UserDetailPanel$6.buttonClick(UserDetailPanel.java:363)
…
public List<Item> loadItems(int start, int count) {
// Retrieve groups user belong to
Set<String> currentGroups = getCurrentGroups();
// Retrieve all groups and remove ones that user is already member of
List<Group> groups = identityService.createGroupQuery().orderByGroupType().asc().orderByGroupId().asc().orderByGroupName().asc().list();
List<Group> groupsFiltered = new ArrayList<Group>();
for (Group group : groups) {
if (!currentGroups.contains(group.getId()))
groupsFiltered.add(group);
}
// Compute end index, extract sublist, create and populate result list
int end = start + count <= groupsFiltered.size() ? start + count : groupsFiltered.size();
List<Item> groupItems = new ArrayList<Item>();
for (Group group : groupsFiltered.subList(start, end)) {
groupItems.add(new GroupSelectionItem(group));
}
return groupItems;
}
01-15-2013 03:45 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.