diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-03-11 22:23:46 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-03-11 22:23:46 -0800 |
commit | c9421ba1f46d9f9aeee833e1fde2cc263b058411 (patch) | |
tree | 2023c51c1afdde559d23b9baf255b493596613cb /services | |
parent | d0dfab21a34dc3a5f1cc0d4678f5cd1499088292 (diff) | |
download | frameworks_base-c9421ba1f46d9f9aeee833e1fde2cc263b058411.zip frameworks_base-c9421ba1f46d9f9aeee833e1fde2cc263b058411.tar.gz frameworks_base-c9421ba1f46d9f9aeee833e1fde2cc263b058411.tar.bz2 |
Fix issue #2492387: system server crash in WallpaperManagerService
Also move some of the important framework error logs over to Slog.
Change-Id: If6697c3e4f18498612ebd7b0e4e4f042fd713372
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/WallpaperManagerService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/java/com/android/server/WallpaperManagerService.java b/services/java/com/android/server/WallpaperManagerService.java index 1b51741..f4bdd1f 100644 --- a/services/java/com/android/server/WallpaperManagerService.java +++ b/services/java/com/android/server/WallpaperManagerService.java @@ -340,6 +340,12 @@ class WallpaperManagerService extends IWallpaperManager.Stub { final long ident = Binder.clearCallingIdentity(); try { bindWallpaperComponentLocked(null); + } catch (IllegalArgumentException e) { + // This can happen if the default wallpaper component doesn't + // exist. This should be a system configuration problem, but + // let's not let it crash the system and just live with no + // wallpaper. + Slog.e(TAG, "Default wallpaper component not found!", e); } finally { Binder.restoreCallingIdentity(ident); } |