From: Artur Signell Date: Wed, 14 Mar 2012 11:02:52 +0000 (+0200) Subject: Fixed handling of null widgets in split panel X-Git-Tag: 7.0.0.alpha2~326 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5ff5dfda99760dfd9f7a0f60de5ffe407d455ab6;p=vaadin-framework.git Fixed handling of null widgets in split panel --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VAbstractSplitPanel.java b/src/com/vaadin/terminal/gwt/client/ui/VAbstractSplitPanel.java index 046b2fff91..fbeb4ff963 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VAbstractSplitPanel.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VAbstractSplitPanel.java @@ -332,7 +332,9 @@ public class VAbstractSplitPanel extends ComplexPanel { if (firstChild != null) { firstChild.removeFromParent(); } - super.add(w, firstContainer); + if (w != null) { + super.add(w, firstContainer); + } firstChild = w; } @@ -340,7 +342,9 @@ public class VAbstractSplitPanel extends ComplexPanel { if (secondChild != null) { secondChild.removeFromParent(); } - super.add(w, secondContainer); + if (w != null) { + super.add(w, secondContainer); + } secondChild = w; }