]> source.dussan.org Git - vaadin-framework.git/commitdiff
Property side GUI is again visible.
authorJani Laakso <jani.laakso@itmill.com>
Wed, 7 Feb 2007 08:46:12 +0000 (08:46 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Wed, 7 Feb 2007 08:46:12 +0000 (08:46 +0000)
NPE fixed.

svn changeset:496/svn branch:toolkit

src/com/itmill/toolkit/demo/features/FeatureBrowser.java

index 711045a63818795e804aa2063d967f908f069675..cc723ae0c1c804afdb614f3e393ba9659c71786f 100644 (file)
@@ -161,7 +161,7 @@ public class FeatureBrowser extends CustomComponent implements
                        features.expandItem(i.next());
 
                // Add demo component and tabs
-               currentFeature = new IntroWelcome();
+               currentFeature = new FeatureTable();
                layout.addComponent(currentFeature);
 
                // Add properties
@@ -172,10 +172,8 @@ public class FeatureBrowser extends CustomComponent implements
                propertiesSelect.setSwitchMode(true);
                right.addComponent(propertiesSelect);
                properties = currentFeature.getPropertyPanel();
-               if (properties != null) {
-                       properties.setVisible(false);
-                       right.addComponent(properties);
-               }
+               properties.setVisible(false);
+               right.addComponent(properties);
        }
 
        public void registerFeature(String path, Feature feature) {