commit | 37da34e71d13376b3542b28d19c7356c622d6747 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Tue Jun 18 16:29:24 2013 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Tue Jun 18 16:29:24 2013 -0700 |
tree | 01fdb5bb2a9c93448bc9144bdbf70d84bded8693 | |
parent | 885a744787962d1a76d6b1d6b206175b64fd50b6 [diff] |
mediarouter: Fix indexing error resulting in NPE. Bug: 9469471 Change-Id: Idf6f4345eecf03f5f64e2b09c0dda88344a7d67f
diff --git a/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java b/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java index 3d04fb0..0bcfd0b 100644 --- a/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java +++ b/v7/mediarouter/src/android/support/v7/media/RegisteredMediaRouteProvider.java
@@ -428,7 +428,7 @@ private void failPendingCallbacks() { int count = 0; for (int i = 0; i < mPendingCallbacks.size(); i++) { - mPendingCallbacks.get(i).onError(null, null); + mPendingCallbacks.valueAt(i).onError(null, null); } mPendingCallbacks.clear(); }