aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java
diff options
context:
space:
mode:
authorelmot <elmot@vaadin.com>2016-09-01 10:48:26 +0300
committerVaadin Code Review <review@vaadin.com>2016-09-01 13:31:54 +0000
commit876b6383e6ec50a8bbe34126b7bfed5f6f616bea (patch)
treeeef189cc63fb1e030227cc390bf734ba99aa44ef /server/src/main/java
parentda8394e5adeda85047a5e167bdd0904dc3387a87 (diff)
downloadvaadin-framework-876b6383e6ec50a8bbe34126b7bfed5f6f616bea.tar.gz
vaadin-framework-876b6383e6ec50a8bbe34126b7bfed5f6f616bea.zip
UnitTest for SingleSelection
Change-Id: I40b3b9bae7c1eb96377c0a593faee59ef52109fb
Diffstat (limited to 'server/src/main/java')
-rw-r--r--server/src/main/java/com/vaadin/data/selection/SingleSelection.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/data/selection/SingleSelection.java b/server/src/main/java/com/vaadin/data/selection/SingleSelection.java
index 9ede5b104c..fb6d3b1cac 100644
--- a/server/src/main/java/com/vaadin/data/selection/SingleSelection.java
+++ b/server/src/main/java/com/vaadin/data/selection/SingleSelection.java
@@ -139,7 +139,8 @@ public class SingleSelection<T> extends AbstractSelectionModel<T>
@Override
public void deselect(T value) {
- this.selectedItem = null;
+ if(Objects.equals(selectedItem,value))
+ doSelect(null, false);
}
@Override