summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--uitest/src/com/vaadin/tests/components/TestBase.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/uitest/src/com/vaadin/tests/components/TestBase.java b/uitest/src/com/vaadin/tests/components/TestBase.java
index 3260c52003..265c74df59 100644
--- a/uitest/src/com/vaadin/tests/components/TestBase.java
+++ b/uitest/src/com/vaadin/tests/components/TestBase.java
@@ -14,9 +14,11 @@ public abstract class TestBase extends AbstractTestCase {
setMainWindow(window);
window.getContent().setSizeFull();
- Label label = new Label(getDescription(), ContentMode.HTML);
- label.setWidth("100%");
- window.getContent().addComponent(label);
+ if (getDescription() != null) {
+ Label label = new Label(getDescription(), ContentMode.HTML);
+ label.setWidth("100%");
+ window.getContent().addComponent(label);
+ }
layout = new VerticalLayout();
window.getContent().addComponent(layout);