summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2013-05-09 17:29:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-05-09 17:29:05 +0000
commit60ac308e1da302716fd6c5d805c513221039bac2 (patch)
tree2113349f970db62fb987f7cae4b8bd594a9ffb49 /services
parentcb35969708e88057bda7c54c7b3ac1d606ad95c5 (diff)
parentc1b49bd26b2d306854f8392693a7c980172bc507 (diff)
downloadframeworks_base-60ac308e1da302716fd6c5d805c513221039bac2.zip
frameworks_base-60ac308e1da302716fd6c5d805c513221039bac2.tar.gz
frameworks_base-60ac308e1da302716fd6c5d805c513221039bac2.tar.bz2
Merge "Defend against a system server crash." into jb-mr2-dev
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/NotificationManagerService.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java
index cc74b92..6b38f89 100644
--- a/services/java/com/android/server/NotificationManagerService.java
+++ b/services/java/com/android/server/NotificationManagerService.java
@@ -727,7 +727,13 @@ public class NotificationManagerService extends INotificationManager.Stub
&& info.userid == userid) {
mListeners.remove(i);
if (info.connection != null) {
- mContext.unbindService(info.connection);
+ try {
+ mContext.unbindService(info.connection);
+ } catch (IllegalArgumentException ex) {
+ // something happened to the service: we think we have a connection
+ // but it's bogus.
+ Slog.e(TAG, "Listener " + name + " could not be unbound: " + ex);
+ }
}
}
}