Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd2730a0 authored by Ajinkya Chalke's avatar Ajinkya Chalke
Browse files

Fix NPE in ScreenCapture.release method.

Bug: 276941014
Test: Manual test

Change-Id: I3675d8d3479ae0f514f0e113ddbf23e85b13e936
parent d9fc7a57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
            }