diff options
-rw-r--r-- | client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java b/client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java index cf7ec53e68..a2bebbe784 100644 --- a/client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java +++ b/client/src/com/vaadin/client/widget/grid/datasources/ListDataSource.java @@ -236,7 +236,7 @@ public class ListDataSource<T> implements DataSource<T> { public void clear() { int size = ds.size(); ds.clear(); - if (changeHandler != null) { + if (changeHandler != null && size > 0) { changeHandler.dataRemoved(0, size); } } |