]> source.dussan.org Git - vaadin-framework.git/commitdiff
Consistently use getSecondComponent instead of using the state directly
authorArtur Signell <artur@vaadin.com>
Fri, 16 Mar 2012 09:38:25 +0000 (11:38 +0200)
committerArtur Signell <artur@vaadin.com>
Fri, 16 Mar 2012 09:38:25 +0000 (11:38 +0200)
src/com/vaadin/ui/AbstractSplitPanel.java

index f8f6381dae21e27e2ec90c9eb39e25c5dafac05e..58778a07aef9930d39adf2f13ff392016c41097b 100644 (file)
@@ -69,7 +69,7 @@ public abstract class AbstractSplitPanel extends AbstractLayout {
                 return (getFirstComponent() == null ? getSecondComponent()
                         : getFirstComponent());
             } else if (i == 2) {
-                return (Component) state.getSecondChild();
+                return getSecondComponent();
             }
             return null;
         }