diff options
author | John Ahlroos <john@vaadin.com> | 2012-11-08 12:03:45 +0200 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-11-08 12:03:45 +0200 |
commit | 82a33d9a5ad36f102d2f29c1a82368bce02f1756 (patch) | |
tree | 09d22082f78f374ae54d538e098e6a3e63de5b5a /client | |
parent | e8ae9f7d6427f7f6daae300dee7931a6e8394bdb (diff) | |
download | vaadin-framework-82a33d9a5ad36f102d2f29c1a82368bce02f1756.tar.gz vaadin-framework-82a33d9a5ad36f102d2f29c1a82368bce02f1756.zip |
Fixed absolute layout class cast exception #10155
Change-Id: I5a9772e2d4082453923cfdca17bcef34e833adda
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java b/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java index 26ee4409fb..0cfd4fb8e5 100644 --- a/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java +++ b/client/src/com/vaadin/client/ui/absolutelayout/VAbsoluteLayout.java @@ -80,7 +80,7 @@ public class VAbsoluteLayout extends ComplexPanel { wrapper.destroy(); return super.remove(wrapper); } - return false; + return super.remove(w); } /** @@ -246,9 +246,11 @@ public class VAbsoluteLayout extends ComplexPanel { */ protected AbsoluteWrapper getChildWrapper(Widget child) { for (Widget w : getChildren()) { - AbsoluteWrapper wrapper = (AbsoluteWrapper) w; - if (wrapper.getWidget() == child) { - return wrapper; + if (w instanceof AbsoluteWrapper) { + AbsoluteWrapper wrapper = (AbsoluteWrapper) w; + if (wrapper.getWidget() == child) { + return wrapper; + } } } return null; |