add null check
This commit is contained in:
parent
836f0ea82b
commit
6f98e1542b
@ -61,6 +61,9 @@ public final class BufferObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static synchronized void release(BufferObject bo) {
|
public static synchronized void release(BufferObject bo) {
|
||||||
|
if (bo == null)
|
||||||
|
return;
|
||||||
|
|
||||||
//if (counter > 200) {
|
//if (counter > 200) {
|
||||||
// Log.d(TAG, "should clear some buffers " + counter);
|
// Log.d(TAG, "should clear some buffers " + counter);
|
||||||
//}
|
//}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user