From dc2b91b335126c8042bf520742cb9bdd4c85ae88 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 1 Jul 2010 10:39:19 +0000 Subject: [PATCH] Potential fix for #4484 - PropertyFormatter constructor calls format svn changeset:13996/svn branch:6.4 --- src/com/vaadin/data/util/PropertyFormatter.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/com/vaadin/data/util/PropertyFormatter.java b/src/com/vaadin/data/util/PropertyFormatter.java index 3d7b3355f6..df2a2e47f3 100644 --- a/src/com/vaadin/data/util/PropertyFormatter.java +++ b/src/com/vaadin/data/util/PropertyFormatter.java @@ -54,7 +54,18 @@ public abstract class PropertyFormatter implements Property, Property dataSource; /** - * Construct a new formatter that is connected to given datasource. + * Construct a new {@code PropertyFormatter} that is not connected to any + * data source. Call {@link #setPropertyDataSource(Property)} later on to + * attach it to a property. + * + */ + protected PropertyFormatter() { + } + + /** + * Construct a new formatter that is connected to given data source. Calls + * {@link #format(Object)} which can be a problem if the formatter has not + * yet been initialized. * * @param propertyDataSource * to connect this property to. -- 2.39.5