summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-11-16 13:55:14 +0200
committerLeif Åstrand <leif@vaadin.com>2011-11-16 13:55:14 +0200
commitc71732250c2c5f934479350ccf011f0d385caf6b (patch)
tree666e791690c1e1233c724cefcc69f206d1d50084 /src
parent2c74c74b4d59c17dd225de2a4e7b49e4f9261d27 (diff)
downloadvaadin-framework-c71732250c2c5f934479350ccf011f0d385caf6b.tar.gz
vaadin-framework-c71732250c2c5f934479350ccf011f0d385caf6b.zip
Initialize content on the fly if not already initialized
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/ui/Root.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/Root.java b/src/com/vaadin/ui/Root.java
index 0b18d604d1..7819ccfa95 100644
--- a/src/com/vaadin/ui/Root.java
+++ b/src/com/vaadin/ui/Root.java
@@ -495,6 +495,9 @@ public class Root extends AbstractComponentContainer {
}
public ComponentContainer getContent() {
+ if (content == null) {
+ setContent(new VerticalLayout());
+ }
return content;
}