From 9b771676aaa287f0c5ec341fb46d23e0c1e246dd Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Thu, 12 Apr 2018 14:16:09 -0400 Subject: [PATCH] Catch exceptions reading calendar events Test: none Change-Id: I3be8d3abc5feead1d940ab86d8edcd770187eca9 Fixes: 70568179 --- .../java/com/android/server/notification/CalendarTracker.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/core/java/com/android/server/notification/CalendarTracker.java b/services/core/java/com/android/server/notification/CalendarTracker.java index d42c7c1939a2a..4001b908e3b51 100644 --- a/services/core/java/com/android/server/notification/CalendarTracker.java +++ b/services/core/java/com/android/server/notification/CalendarTracker.java @@ -30,6 +30,7 @@ import android.provider.CalendarContract.Instances; import android.service.notification.ZenModeConfig.EventInfo; import android.util.ArraySet; import android.util.Log; +import android.util.Slog; import java.io.PrintWriter; import java.util.Date; @@ -161,6 +162,8 @@ public class CalendarTracker { } } } + } catch (Exception e) { + Slog.w(TAG, "error reading calendar", e); } finally { if (cursor != null) { cursor.close();