summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-02-18 19:38:28 +0200
committerVaadin Code Review <review@vaadin.com>2013-02-18 17:39:03 +0000
commit9af9a2d1e6dcd6546d181deb6f4537d6d2a4f595 (patch)
tree1acdf407499a967be93340324d973aa995045692 /client
parentc4a0bc318ec9c6b41d652e7020ee39784cc1eb10 (diff)
downloadvaadin-framework-9af9a2d1e6dcd6546d181deb6f4537d6d2a4f595.tar.gz
vaadin-framework-9af9a2d1e6dcd6546d181deb6f4537d6d2a4f595.zip
Fixed NPE when TextField value is null (#11021)
Ticket: 11021 Change-Id: If3b99333a116e6191ba3f563738e456a07173ab4
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