]> source.dussan.org Git - vaadin-framework.git/commitdiff
empty if fix, also throws if IView not found
authorMarc Englund <marc.englund@itmill.com>
Thu, 20 Sep 2007 12:37:12 +0000 (12:37 +0000)
committerMarc Englund <marc.englund@itmill.com>
Thu, 20 Sep 2007 12:37:12 +0000 (12:37 +0000)
svn changeset:2355/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java

index 471286deac19c70b55304030f3b39e07757d2f2f..a47b0fe73ce3fba6e204fabd7f4319c6ae95d584 100644 (file)
@@ -145,6 +145,8 @@ public class ICustomLayout extends ComplexPanel implements Paintable, Container
                if (parent != null && ((IView) parent).getTheme() != null) {
                    prefixImgSrcs(getElement(), "../ITK-INF/themes/" + ((IView) parent).getTheme()
                                + "/layouts/");
+               } else {
+                   throw(new IllegalStateException("Could not find IView; maybe updateFromUIDL() was called before attaching the widget?"));
                }
        }