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

Commit 3d570a49 authored by Felipe Leme's avatar Felipe Leme
Browse files

Fixed NPE on MainContentCaptureSession.handleFlushIfNeeded

Test: atest CtsContentCaptureServiceTestCases
Bug: 122959591

Change-Id: Ia3b842326b5eee839693ffc71cbc3d464aabccc7
parent d6a69968
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -402,7 +402,7 @@ public final class MainContentCaptureSession extends ContentCaptureSession {
    }

    private void handleFlushIfNeeded(@FlushReason int reason) {
        if (mEvents.isEmpty()) {
        if (mEvents == null || mEvents.isEmpty()) {
            if (VERBOSE) Log.v(TAG, "Nothing to flush");
            return;
        }