]> source.dussan.org Git - vaadin-framework.git/commitdiff
Initialize content on the fly if not already initialized
authorLeif Åstrand <leif@vaadin.com>
Wed, 16 Nov 2011 11:55:14 +0000 (13:55 +0200)
committerLeif Åstrand <leif@vaadin.com>
Wed, 16 Nov 2011 11:55:14 +0000 (13:55 +0200)
src/com/vaadin/ui/Root.java

index 0b18d604d1992b66b431ef65339d5c31ebbd959c..7819ccfa955a387a75d07958e75c2bac1bd3fc8c 100644 (file)
@@ -495,6 +495,9 @@ public class Root extends AbstractComponentContainer {
     }
 
     public ComponentContainer getContent() {
+        if (content == null) {
+            setContent(new VerticalLayout());
+        }
         return content;
     }