From c71732250c2c5f934479350ccf011f0d385caf6b Mon Sep 17 00:00:00 2001 From: Leif Åstrand Date: Wed, 16 Nov 2011 13:55:14 +0200 Subject: Initialize content on the fly if not already initialized --- src/com/vaadin/ui/Root.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3