diff options
author | Leif Åstrand <leif@vaadin.com> | 2011-11-16 13:55:14 +0200 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2011-11-16 13:55:14 +0200 |
commit | c71732250c2c5f934479350ccf011f0d385caf6b (patch) | |
tree | 666e791690c1e1233c724cefcc69f206d1d50084 /src | |
parent | 2c74c74b4d59c17dd225de2a4e7b49e4f9261d27 (diff) | |
download | vaadin-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.java | 3 |
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; } |