summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/vaadin/data')
-rw-r--r--src/com/vaadin/data/util/sqlcontainer/SQLContainer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java b/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java
index f6b22bfecb..009a7d5e63 100644
--- a/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java
+++ b/src/com/vaadin/data/util/sqlcontainer/SQLContainer.java
@@ -210,7 +210,7 @@ public class SQLContainer implements Container, Container.Filterable,
return rowNum >= 0 && rowNum < size;
}
- if (!(itemId instanceof TemporaryRowId)) {
+ if (itemId instanceof RowId && !(itemId instanceof TemporaryRowId)) {
try {
return delegate.containsRowWithKey(((RowId) itemId).getId());
} catch (Exception e) {