OSDN Git Service

Fix infinite loop in TrustManagerService exception handler.
authorJim Miller <jaggies@google.com>
Tue, 20 May 2014 00:38:13 +0000 (17:38 -0700)
committerJim Miller <jaggies@google.com>
Tue, 20 May 2014 00:38:13 +0000 (17:38 -0700)
Fixes bug 15092272

Change-Id: I972a9134aed18fc160c919eac93e9d488b5691f1

services/core/java/com/android/server/trust/TrustManagerService.java

index c1b9a33..efaa91b 100644 (file)
@@ -324,8 +324,6 @@ public class TrustManagerService extends SystemService {
                 mTrustListeners.get(i).onTrustChanged(enabled, userId);
             } catch (RemoteException e) {
                 Slog.e(TAG, "Exception while notifying TrustListener. Removing listener.", e);
-                mTrustListeners.get(i);
-                i--;
             }
         }
     }