summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/src/com/vaadin/client/ui/orderedlayout/Slot.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/orderedlayout/Slot.java b/client/src/com/vaadin/client/ui/orderedlayout/Slot.java
index 4fb5acf287..5fab131c65 100644
--- a/client/src/com/vaadin/client/ui/orderedlayout/Slot.java
+++ b/client/src/com/vaadin/client/ui/orderedlayout/Slot.java
@@ -104,7 +104,10 @@ public final class Slot extends SimplePanel {
@Override
public void onElementResize(ElementResizeEvent e) {
- Util.forceIE8Redraw(getCaptionElement());
+ Element caption = getCaptionElement();
+ if (caption != null) {
+ Util.forceIE8Redraw(caption);
+ }
}
};