commit | a2dbaf81f60dd342d7849af75512c5b11344771e | [log] [tgz] |
---|---|---|
author | Brett Chabot <brettchabot@google.com> | Thu Sep 26 10:16:07 2019 -0700 |
committer | Brett Chabot <brettchabot@google.com> | Thu Apr 02 01:42:34 2020 +0000 |
tree | 986e9fd6314616d5440e170639bca9dc761d929a | |
parent | 43b604f9c550c424c0625dc4523ded6acec32e19 [diff] |
Avoid exceptions when calendar and contacts sync packages do not exist. PackageManagerService will NPE when adjusting permissions if no calendar or contacts sync packages exist. This commit adds simple null checks to avoid this. (cherry pick from Ia6db335d86c514a5b4f3b438f72c8d5375066178) Bug: 138449617 Test: m -j && emulator& Change-Id: Iaca027b92b64c40ca2fae2942c67632b5ad3cccc