]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed #1076 BeanItem fails if getter not defined
authorJani Laakso <jani.laakso@itmill.com>
Fri, 2 Nov 2007 13:28:32 +0000 (13:28 +0000)
committerJani Laakso <jani.laakso@itmill.com>
Fri, 2 Nov 2007 13:28:32 +0000 (13:28 +0000)
svn changeset:2687/svn branch:trunk

src/com/itmill/toolkit/data/util/BeanItem.java

index de5f29139432aa722678578cc94de1af1db9e895..a6c50c43397d868edd0872de62455df59efcc1c6 100644 (file)
@@ -86,9 +86,11 @@ public class BeanItem extends PropertysetItem {
                                Class type = pd[i].getPropertyType();
                                String name = pd[i].getName();
 
-                               Property p = new MethodProperty(type, bean, getMethod,
-                                               setMethod);
-                               addItemProperty(name, p);
+                               if ((getMethod != null) && (setMethod != null)) {
+                                       Property p = new MethodProperty(type, bean, getMethod,
+                                                       setMethod);
+                                       addItemProperty(name, p);
+                               }
                        }
                } catch (java.beans.IntrospectionException ignored) {
                }