summaryrefslogtreecommitdiffstats
path: root/server/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/com')
-rw-r--r--server/src/com/vaadin/ui/declarative/DesignFormatter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/com/vaadin/ui/declarative/DesignFormatter.java b/server/src/com/vaadin/ui/declarative/DesignFormatter.java
index dbeb756dd8..509015130d 100644
--- a/server/src/com/vaadin/ui/declarative/DesignFormatter.java
+++ b/server/src/com/vaadin/ui/declarative/DesignFormatter.java
@@ -292,8 +292,9 @@ public class DesignFormatter implements Serializable {
if (object == null) {
return null;
} else {
- return findConverterFor(object.getClass()).convertToPresentation(
- object, String.class, null);
+ Converter<String, Object> converter = findConverterFor(object
+ .getClass());
+ return converter.convertToPresentation(object, String.class, null);
}
}