diff options
author | Artur Signell <artur.signell@itmill.com> | 2011-09-30 08:21:07 +0000 |
---|---|---|
committer | Artur Signell <artur.signell@itmill.com> | 2011-09-30 08:21:07 +0000 |
commit | 8e8f30623a11211a153828b8105a63f3ffc81917 (patch) | |
tree | 6004650c930b989458ae7defaa8cc1fac3fe5004 /src/com/vaadin/data/util/sqlcontainer | |
parent | c4b62e478ac9ab8f66c3ca4289619b0f9c8ee958 (diff) | |
download | vaadin-framework-8e8f30623a11211a153828b8105a63f3ffc81917.tar.gz vaadin-framework-8e8f30623a11211a153828b8105a63f3ffc81917.zip |
#7697 SQLContainer.containsId logs a ClassCastException
svn changeset:21463/svn branch:6.7
Diffstat (limited to 'src/com/vaadin/data/util/sqlcontainer')
-rw-r--r-- | src/com/vaadin/data/util/sqlcontainer/SQLContainer.java | 2 |
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) { |