commit | df337f30e938e3f3470eb6c154c3ee7e69bd4354 | [log] [tgz] |
---|---|---|
author | Nils Holmström <nils.holmstrom@sonymobile.com> | Tue Jan 08 15:42:01 2013 +0100 |
committer | Takeshi Aimi <takeshi.aimi@sonymobile.com> | Tue Mar 12 20:49:14 2013 +0900 |
tree | d861f153ede849b6e8774d666680990a0b77691f | |
parent | c9e0cd2ac7b1df3e60f0ca8bab6a7240bade07d9 [diff] |
Fix NPE when pasting non-text from Clipboard When copying a link from a bookmark and then pasting it into a textfield a NullPointerException will occur. A ClipData.Item is not guaranteed to always contain a text string and therefore getText() can be set to null. Using method coerceToText() instead of getText() makes sure that a text string is always returned. Change-Id: I81343c0371835a3a7a52045dcd1760e69e59a967