mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-14 05:44:20 +00:00
b=779826; fix Invalid size exception in DirectBufferAllocator (Android nightly bustage fix); r=snorp,kats
This commit is contained in:
parent
24117e18a9
commit
9b5831023c
@ -17,7 +17,7 @@ public final class DirectBufferAllocator {
|
||||
private DirectBufferAllocator() {}
|
||||
|
||||
public static ByteBuffer allocate(int size) {
|
||||
if (size <= 0 || (size % 4) != 0) {
|
||||
if (size <= 0) {
|
||||
throw new IllegalArgumentException("Invalid size " + size);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user