diff options
author | Artur Signell <artur@vaadin.com> | 2011-12-12 14:51:22 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2011-12-12 15:00:50 +0200 |
commit | 582e3e697aedceacba7f8d83e8c7b0c4e812c8ef (patch) | |
tree | 19a3d706c65e8e3572f6cbb96354fc116f25f03e /src/com/vaadin/ui/Table.java | |
parent | 3da1452bf2e27f7305db05c10b183882e009a733 (diff) | |
download | vaadin-framework-582e3e697aedceacba7f8d83e8c7b0c4e812c8ef.tar.gz vaadin-framework-582e3e697aedceacba7f8d83e8c7b0c4e812c8ef.zip |
#8103 ConverterFactory is no longer static + javadoc updates
Diffstat (limited to 'src/com/vaadin/ui/Table.java')
-rw-r--r-- | src/com/vaadin/ui/Table.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/com/vaadin/ui/Table.java b/src/com/vaadin/ui/Table.java index 574704d3bf..8bd40f944d 100644 --- a/src/com/vaadin/ui/Table.java +++ b/src/com/vaadin/ui/Table.java @@ -3467,10 +3467,12 @@ public class Table extends AbstractSelect implements Action.Container, if (hasConverter(colId)) { converter = getConverter(colId); } else { - // FIXME: Use thread local - converter = (Converter<Object, String>) Application - .getConverterFactory().createConverter(property.getType(), - String.class); + Application app = Application.getCurrentApplication(); + if (app != null) { + converter = (Converter<Object, String>) app + .getConverterFactory().createConverter( + property.getType(), String.class); + } } Object value = property.getValue(); if (converter != null) { |