Browse Source

Throw exception early on null itemId (#16541)

Change-Id: Iff42a6e9e5e00006c96fa82e102ff145449c6f88
tags/7.7.0.alpha3
vilo 9 years ago
parent
commit
aa0816ce6e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      server/src/main/java/com/vaadin/ui/Table.java

+ 3
- 0
server/src/main/java/com/vaadin/ui/Table.java View File

@@ -2221,6 +2221,9 @@ public class Table extends AbstractSelect implements Action.Container,
List<?> itemIds = getItemIds(firstIndex, rows);
for (int i = 0; i < rows && i < itemIds.size(); i++) {
Object id = itemIds.get(i);
if (id == null) {
throw new IllegalStateException("Null itemId returned from container");
}
// Start by parsing the values, id should already be set
parseItemIdToCells(cells, id, i, firstIndex, headmode, cols,
colids, firstIndexNotInCache, iscomponent,

Loading…
Cancel
Save