diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java index 3c0e9af26d..ce317ee563 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VMeasuringOrderedLayout.java @@ -85,7 +85,12 @@ public class VMeasuringOrderedLayout extends ComplexPanel { } public VLayoutSlot getSlotForChild(Widget widget) { - return (VLayoutSlot) widget.getLayoutData(); + Object o = widget.getLayoutData(); + if (o instanceof VLayoutSlot) { + return (VLayoutSlot) o; + } + + return null; } public void setCaption(Widget child, VCaption caption) { |