aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java
index fa4147836f..7cfe627492 100644
--- a/src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java
+++ b/src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java
@@ -467,7 +467,9 @@ public class VCustomLayout extends ComplexPanel implements Paintable,
@Override
public void onDetach() {
super.onDetach();
- detachResizedFunction(elementWithNativeResizeFunction);
+ if (elementWithNativeResizeFunction != null) {
+ detachResizedFunction(elementWithNativeResizeFunction);
+ }
}
private native void detachResizedFunction(Element element)