LLS: Fix NPE when backing service dies

The mService member variable should not be used directly as this can
cause an NPE if the backing service has died.  Instead, use the
getServiceGuarded() method which will take care of re-establishing
a connection to the backing service.

Change-Id: I290e69c07a2e56644de7a394543d1e36fac1cbcc
TICKET: CYNGNOS-2779
This commit is contained in:
d34d 2016-05-10 09:43:55 -07:00 committed by Gerrit Code Review
parent 5340c0e45b
commit 8c8601b9f3
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ public class LiveLockScreenServiceBroker extends SystemService {
mDefaultLlsInfo = llsInfo;
try {
mService.updateDefaultLiveLockScreen(llsInfo);
getServiceGuarded().updateDefaultLiveLockScreen(llsInfo);
} catch (RemoteException e) {
/* ignore */
}