aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2014-07-22 12:59:14 +0300
committerLeif Åstrand <leif@vaadin.com>2014-07-22 12:59:32 +0300
commit86e1c718578f8c81323b47e3efed03178d123c03 (patch)
tree9eaf3779ce79b67963c9fcb3a43c7fd6c39f25fd /server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
parentaca2902c9cafcb02db19a0cdd42b1488786c0f56 (diff)
parent6ae7843e46ee906adfc99bde71ded5f296caea74 (diff)
downloadvaadin-framework-86e1c718578f8c81323b47e3efed03178d123c03.tar.gz
vaadin-framework-86e1c718578f8c81323b47e3efed03178d123c03.zip
Merge branch 'master' into grid
Change-Id: I6878b3c64eb5c98174537f4e5864e2ff2cb1863f
Diffstat (limited to 'server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java')
-rw-r--r--server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java b/server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
index eafd3573bc..0bfec33957 100644
--- a/server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
+++ b/server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
@@ -701,7 +701,9 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
*/
@Override
public int size() {
- return container.size();
+ int size = container.size();
+ assert size >= 0;
+ return size;
}
/*