diff options
| -rw-r--r-- | services/core/java/com/android/server/PackageWatchdog.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/PackageWatchdog.java b/services/core/java/com/android/server/PackageWatchdog.java index 6f20adf74ee2..a61925732256 100644 --- a/services/core/java/com/android/server/PackageWatchdog.java +++ b/services/core/java/com/android/server/PackageWatchdog.java @@ -1396,7 +1396,14 @@ public class PackageWatchdog { int innerDepth = parser.getDepth(); try { if (Flags.recoverabilityDetection()) { - observerMitigationCount = parser.getAttributeInt(null, ATTR_MITIGATION_COUNT); + try { + observerMitigationCount = + parser.getAttributeInt(null, ATTR_MITIGATION_COUNT); + } catch (XmlPullParserException e) { + Slog.i( + TAG, + "ObserverInternal mitigation count was not present."); + } } while (XmlUtils.nextElementWithin(parser, innerDepth)) { if (TAG_PACKAGE.equals(parser.getName())) { |