diff options
Diffstat (limited to 'android/widget/EditText.java')
-rw-r--r-- | android/widget/EditText.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/widget/EditText.java b/android/widget/EditText.java index 336c20cd..728824c2 100644 --- a/android/widget/EditText.java +++ b/android/widget/EditText.java @@ -106,6 +106,10 @@ public class EditText extends TextView { @Override public Editable getText() { CharSequence text = super.getText(); + // This can only happen during construction. + if (text == null) { + return null; + } if (text instanceof Editable) { return (Editable) super.getText(); } |