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

Commit d3fad629 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix IndexOutOfBoundsException in SecurityLogMonitor"

parents d864a769 b98faf16
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -389,9 +389,15 @@ class SecurityLogMonitor implements Runnable {
            mCriticalLevelLogged = false;
            Slog.i(TAG, "Pending logs buffer full. Discarding old logs.");
        }
        if (DEBUG) Slog.d(TAG, mPendingLogs.size() + " pending events in the buffer after merging,"
        if (DEBUG) {
            if (mPendingLogs.size() > 0) {
                Slog.d(TAG, mPendingLogs.size() + " pending events in the buffer after merging,"
                        + " with ids " + mPendingLogs.get(0).getId()
                        + " to " + mPendingLogs.get(mPendingLogs.size() - 1).getId());
            } else {
                Slog.d(TAG, "0 pending events in the buffer after merging");
            }
        }
    }

    @GuardedBy("mLock")