]> source.dussan.org Git - vaadin-framework.git/commitdiff
added null check to custom layouts js api cleanup. Fixed some customer issues in...
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 20 May 2009 05:56:37 +0000 (05:56 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 20 May 2009 05:56:37 +0000 (05:56 +0000)
svn changeset:7907/svn branch:6.0

src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java

index fa4147836f62cfa81d4e3428934b88192a9bbfda..7cfe627492a3eabfc948e5a8fb27aa5689b0ed47 100644 (file)
@@ -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)