diff options
author | Henrik Paul <henrik@vaadin.com> | 2015-03-24 15:11:23 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-03-25 14:03:22 +0000 |
commit | 6a7437cc96da860e50297e064abe7aef387c9e2c (patch) | |
tree | 5031b0eccb298de0dbf7d27cb264fdea5f64ada1 /server/src/com/vaadin/data/RpcDataProviderExtension.java | |
parent | ff5f4e29731e534a85c5c22fab292eea0476237b (diff) | |
download | vaadin-framework-6a7437cc96da860e50297e064abe7aef387c9e2c.tar.gz vaadin-framework-6a7437cc96da860e50297e064abe7aef387c9e2c.zip |
Fixes edge case in null details generation for Grid (#17274)
Change-Id: I1bf4c2f0600baea8b925bd31dcd42c1e901a7c8b
Diffstat (limited to 'server/src/com/vaadin/data/RpcDataProviderExtension.java')
-rw-r--r-- | server/src/com/vaadin/data/RpcDataProviderExtension.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/com/vaadin/data/RpcDataProviderExtension.java b/server/src/com/vaadin/data/RpcDataProviderExtension.java index 66c17c4afa..a21a81244a 100644 --- a/server/src/com/vaadin/data/RpcDataProviderExtension.java +++ b/server/src/com/vaadin/data/RpcDataProviderExtension.java @@ -787,7 +787,7 @@ public class RpcDataProviderExtension extends AbstractExtension { if (!SharedUtil.equals(oldIndex, newIndex)) { changes.add(new DetailsConnectorChange(component, oldIndex, - newIndex)); + newIndex, emptyDetails.containsKey(component))); } } @@ -798,7 +798,8 @@ public class RpcDataProviderExtension extends AbstractExtension { Component component = entry.getValue(); Integer newIndex = rowIndexToDetails.inverse().get(component); if (newIndex == null) { - changes.add(new DetailsConnectorChange(null, oldIndex, null)); + changes.add(new DetailsConnectorChange(null, oldIndex, + null, emptyDetails.containsValue(oldIndex))); } } |