Merge "Fix NPE in ScreenCapture.release method." into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
eab2ec1072
@@ -309,7 +309,7 @@ public class ScreenCapture {
|
||||
|
||||
/** Release any layers if set using {@link Builder#setExcludeLayers(SurfaceControl[])}. */
|
||||
public void release() {
|
||||
if (mExcludeLayers.length == 0) {
|
||||
if (mExcludeLayers == null || mExcludeLayers.length == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user