]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed NPE (#10537) 88/588/1
authorArtur Signell <artur@vaadin.com>
Mon, 7 Jan 2013 23:15:09 +0000 (01:15 +0200)
committerArtur Signell <artur@vaadin.com>
Mon, 7 Jan 2013 23:15:47 +0000 (01:15 +0200)
Change-Id: Ib1dad4b256c430901bb2c0779fbab85f8328a5d4

client/src/com/vaadin/client/ui/VTextField.java

index 0123a4b4f2d03a8dd708b71a625e8634ce86701f..1229eda093e11bc2510b58cc713385f9b24b2c6a 100644 (file)
@@ -398,7 +398,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler,
             setPrompting(false);
         }
         focusedTextField = this;
-        if (client.hasEventListeners(this, EventId.FOCUS)) {
+        if (client != null && client.hasEventListeners(this, EventId.FOCUS)) {
             client.updateVariable(paintableId, EventId.FOCUS, "", true);
         }
     }