summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java b/client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java
index 922e8d4a32..e2ede121b6 100644
--- a/client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java
+++ b/client/src/com/vaadin/client/ui/textfield/TextFieldConnector.java
@@ -77,8 +77,10 @@ public class TextFieldConnector extends AbstractFieldConnector implements
}
getWidget().setColumns(getState().columns);
- final String text = getState().text;
-
+ String text = getState().text;
+ if (text == null) {
+ text = "";
+ }
/*
* We skip the text content update if field has been repainted, but text
* has not been changed. Additional sanity check verifies there is no