summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorHenrik Hall <henrik.hall@sonyericsson.com>2010-03-26 15:32:48 +0100
committerJohan Redestig <johan.redestig@sonyericsson.com>2010-03-26 15:32:48 +0100
commit9694f9056a86081aadc1d7caab82d340847b3884 (patch)
treea26ac41450146c637a1cd1503915905aef062773 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent7bb2581e6f404da0edba9ebb81b0d0593715eb40 (diff)
Improved error-handling in Rfc822Tokenizer
The javadoc for the Rfc822Tokenizer states that it will try to be tolerant to broken syntax instead of returning an error (as in an unchecked exception). In some rare cases where the input is clearly incorrect, the tokenizer throws a StringIndexOutOfBoundsException, which was found during one of the monkey test runs. This commits fixes that crash, and teaches the tokenizer to just continue to run anyway. Two simple junit testcases has also been added for testing the default and the errornous case.
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions