b=779826; fix Invalid size exception in DirectBufferAllocator (Android nightly bustage fix); r=snorp,kats

This commit is contained in:
Vladimir Vukicevic 2012-08-02 11:14:32 -04:00
parent 1b0ed1cf7a
commit 9fb7842237

View File

@ -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);
}