summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorNils Holmström <nils.holmstrom@sonymobile.com>2013-01-08 15:42:01 +0100
committerTakeshi Aimi <takeshi.aimi@sonymobile.com>2013-03-12 20:49:14 +0900
commitdf337f30e938e3f3470eb6c154c3ee7e69bd4354 (patch)
treed861f153ede849b6e8774d666680990a0b77691f /graphics/java/android/renderscript/ProgramStore.java
parentc9e0cd2ac7b1df3e60f0ca8bab6a7240bade07d9 (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
Diffstat (limited to 'graphics/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions