Merge "Prevent crash if detachWallpaperLocked is called multiple times" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0786743a54
@@ -945,7 +945,9 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
|
||||
mWindowManagerInternal.removeWindowToken(mToken, false/* removeWindows */,
|
||||
mDisplayId);
|
||||
try {
|
||||
connection.mService.detach(mToken);
|
||||
if (connection.mService != null) {
|
||||
connection.mService.detach(mToken);
|
||||
}
|
||||
} catch (RemoteException e) {
|
||||
Slog.w(TAG, "connection.mService.destroy() threw a RemoteException");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user