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

Commit 3615fbdf authored by Elliott Hughes's avatar Elliott Hughes Committed by Automerger Merge Worker
Browse files

Merge "Fix NPE in BootReceiver.addTombstoneToDropBox." am: f2ab01c0

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1823178

Change-Id: I15a231d3dbc22577c366c61154e1f5b49ad99f04
parents b609c7e0 f2ab01c0
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -476,7 +476,11 @@ public class BootReceiver extends BroadcastReceiver {
     */
    public static void addTombstoneToDropBox(Context ctx, File tombstone, boolean proto) {
        final DropBoxManager db = ctx.getSystemService(DropBoxManager.class);
        final String bootReason = SystemProperties.get("ro.boot.bootreason", null);
        if (db == null) {
            Slog.e(TAG, "Can't log tombstone: DropBoxManager not available");
            return;
        }

        HashMap<String, Long> timestamps = readTimestamps();
        try {
            if (proto) {