| commit | fe0806a3b60ff54c7444a51b91353e2299ed1bca | [log] [tgz] |
|---|---|---|
| author | Daniel Sandler <dsandler@android.com> | Wed May 16 12:41:33 2012 -0400 |
| committer | Daniel Sandler <dsandler@android.com> | Wed May 16 12:43:02 2012 -0400 |
| tree | 0729301943554528cc3d398255a620024dbfe3d8 | |
| parent | ae14715284837aebe179f790e0456d2bdb367583 [diff] [blame] |
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
diff --git a/services/java/com/android/server/StatusBarManagerService.java b/services/java/com/android/server/StatusBarManagerService.java index 8429086..78c0c12 100644 --- a/services/java/com/android/server/StatusBarManagerService.java +++ b/services/java/com/android/server/StatusBarManagerService.java
@@ -489,7 +489,8 @@ 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 {