diff options
| author | Chet Haase <chet@google.com> | 2021-07-26 20:45:17 +0000 |
|---|---|---|
| committer | Chet Haase <chet@google.com> | 2021-07-26 20:45:17 +0000 |
| commit | 34def796c98539e23e86d2d3728d46ab3c4a79da (patch) | |
| tree | 0d36e18c10253c0da0bd28ecb4ed5b0f15201fb4 /core/java/android/inputmethodservice/AbstractInputMethodService.java | |
| parent | 7f1c09cb105a718af28135d5c9b0022e77dcac19 (diff) | |
Fixes crash when constructing NinePatch with null chunk data
Previously, ART runtime would crash checking the size of the
chunk array if it was null. Now we simply set the chunk size to
zero and fail with an exception, the same as when the array is not
large enough.
Test: NinePatchTest#testConstructor
Fixes: 189478462
Change-Id: I0352a9b6be1ce64c6a40ce8dffdaa146aacb7a03
Diffstat (limited to 'core/java/android/inputmethodservice/AbstractInputMethodService.java')
0 files changed, 0 insertions, 0 deletions
