]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix accidental invalid cast (#6690)
authorLeif Åstrand <leif@vaadin.com>
Mon, 28 May 2012 13:05:55 +0000 (16:05 +0300)
committerLeif Åstrand <leif@vaadin.com>
Wed, 6 Jun 2012 06:33:07 +0000 (09:33 +0300)
src/com/vaadin/terminal/gwt/client/ComponentLocator.java

index 205317542f02732319ed2d6a59d29a902bef30a9..f88cd6b14387d51123f40466aacc3cb386ed6a3a 100644 (file)
@@ -11,7 +11,6 @@ import com.google.gwt.user.client.DOM;
 import com.google.gwt.user.client.Element;
 import com.google.gwt.user.client.ui.HasWidgets;
 import com.google.gwt.user.client.ui.RootPanel;
-import com.google.gwt.user.client.ui.SimplePanel;
 import com.google.gwt.user.client.ui.Widget;
 import com.vaadin.terminal.gwt.client.communication.SharedState;
 import com.vaadin.terminal.gwt.client.ui.SubPartAware;
@@ -452,7 +451,7 @@ public class ComponentLocator {
                 }
 
                 if (connector instanceof ComponentConnector) {
-                    w = ((SimplePanel) connector).getWidget();
+                    w = ((ComponentConnector) connector).getWidget();
                 } else {
                     // Not found
                     return null;