commit | 1712b6d62e34badc09f1ae4bfe1e5a8cef376bec | [log] [tgz] |
---|---|---|
author | Ritwika Mitra <[email protected]> | Fri Mar 13 11:12:58 2020 -0700 |
committer | Ritwika Mitra <[email protected]> | Fri Mar 13 11:12:58 2020 -0700 |
tree | 31d9f3769f860e6066f09379047675002e7162da | |
parent | ab555d56d25d11466a1779b4bc5dd3324d50b0a0 [diff] |
Clear messages map AFTER notificationInfo map is cleared. NotificationInfos hold reference to MessageKeys, which then map to Messages. Since we were clearing the Messages map before Notification Infos Map, and before clearNotifications(), NPEs were being thrown when clearNotifications() was making an API call to a null Message object. Fix: 151448117 Test: verified on hawk by disconnecting a device, checking for NPE Change-Id: Ifad7145dbae5774f9339ce74612d0a49a8b20ddb