diff options
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; } |