summaryrefslogtreecommitdiffstats
path: root/server/tests
diff options
context:
space:
mode:
authorThomas <thomas@vaadin.com>2013-11-08 13:59:28 +0200
committerVaadin Code Review <review@vaadin.com>2013-11-08 14:13:18 +0000
commit8efc38528e6eaf5496dea2db514d3ba9c6df190d (patch)
tree63d75259be6c45edd1bc7fa2ea948e9dd4e64556 /server/tests
parent0a2cf2c429fca3be697dcf37d386a4607d4bdbc3 (diff)
downloadvaadin-framework-8efc38528e6eaf5496dea2db514d3ba9c6df190d.tar.gz
vaadin-framework-8efc38528e6eaf5496dea2db514d3ba9c6df190d.zip
Fixes NPE in TreeTable.setContainerDS(null) (#12928)
Change-Id: I7f3148e51d216dfe20a11c8a5fd922f43cbc673b
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/src/com/vaadin/tests/server/component/treetable/TreeTableSetContainerNull.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/component/treetable/TreeTableSetContainerNull.java b/server/tests/src/com/vaadin/tests/server/component/treetable/TreeTableSetContainerNull.java
new file mode 100644
index 0000000000..a3b79a14f0
--- /dev/null
+++ b/server/tests/src/com/vaadin/tests/server/component/treetable/TreeTableSetContainerNull.java
@@ -0,0 +1,15 @@
+package com.vaadin.tests.server.component.treetable;
+
+import junit.framework.TestCase;
+
+import com.vaadin.ui.TreeTable;
+
+public class TreeTableSetContainerNull extends TestCase {
+
+ public void testNullContainer() {
+ TreeTable treeTable = new TreeTable();
+
+ // should not cause an exception
+ treeTable.setContainerDataSource(null);
+ }
+}