From fe0806a3b60ff54c7444a51b91353e2299ed1bca Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Wed, 16 May 2012 12:41:33 -0400 Subject: [PATCH] Removing a notification that isn't there isn't a big deal. You shouldn't do it, but there's no need to fault your process. Bug: 6396830 Change-Id: I47c20b9829e4e8bb98862f33c3c52be1b5987f37 --- services/java/com/android/server/StatusBarManagerService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/java/com/android/server/StatusBarManagerService.java b/services/java/com/android/server/StatusBarManagerService.java index 84290869804ca..78c0c12d3551b 100644 --- a/services/java/com/android/server/StatusBarManagerService.java +++ b/services/java/com/android/server/StatusBarManagerService.java @@ -489,7 +489,8 @@ public class StatusBarManagerService extends IStatusBarService.Stub synchronized (mNotifications) { final StatusBarNotification n = mNotifications.remove(key); if (n == null) { - throw new IllegalArgumentException("removeNotification key not found: " + key); + Slog.e(TAG, "removeNotification key not found: " + key); + return; } if (mBar != null) { try {