Merge "Fix bug #5233207 android.graphics.cts.PaintTest#testBreakText fails on IRK56F trygon-userdebug"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e7197a996f
@@ -1349,7 +1349,7 @@ public class Paint {
|
||||
if (text == null) {
|
||||
throw new IllegalArgumentException("text cannot be null");
|
||||
}
|
||||
if ((index | count) < 0 || index + count > text.length) {
|
||||
if (index < 0 || text.length - index < Math.abs(count)) {
|
||||
throw new ArrayIndexOutOfBoundsException();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user