From: Marc Englund Date: Thu, 20 Sep 2007 12:37:12 +0000 (+0000) Subject: empty if fix, also throws if IView not found X-Git-Tag: 6.7.0.beta1~5965 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6c4c65562373979ec48a33cf2caaefb4acdffa9a;p=vaadin-framework.git empty if fix, also throws if IView not found svn changeset:2355/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java index 471286deac..a47b0fe73c 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ICustomLayout.java @@ -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?")); } }