summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <raj@cyngn.com>2016-05-06 20:55:04 (GMT)
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-05-13 21:37:18 (GMT)
commit281a48f19af23c9d1a6ce4e366800a02b41ee205 (patch)
tree36ee58e830d62ad1a93a5988828ffc4dc6599a11
parentff0327931a1fdf2617559f7b0a7958c922dbfa30 (diff)
downloadandroid_packages_apps_PhoneCommon-281a48f19af23c9d1a6ce4e366800a02b41ee205.zip
android_packages_apps_PhoneCommon-281a48f19af23c9d1a6ce4e366800a02b41ee205.tar.gz
android_packages_apps_PhoneCommon-281a48f19af23c9d1a6ce4e366800a02b41ee205.tar.bz2
AmbientDataSubscription: don't post results for unknown plugins
Ticket: CYNGNOS-2744 Change-Id: I076a968a3085b9eec3cf702e322dcaa4d7df6f2d
-rw-r--r--src-ambient/com/android/phone/common/ambient/AmbientDataSubscription.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src-ambient/com/android/phone/common/ambient/AmbientDataSubscription.java b/src-ambient/com/android/phone/common/ambient/AmbientDataSubscription.java
index 97eff2f..4227239 100644
--- a/src-ambient/com/android/phone/common/ambient/AmbientDataSubscription.java
+++ b/src-ambient/com/android/phone/common/ambient/AmbientDataSubscription.java
@@ -242,7 +242,9 @@ public abstract class AmbientDataSubscription<M> {
} else {
if (result.getStatus().isSuccess()) {
M plugin = getPluginIfExists(componentName);
- onPostResult(plugin, result, pendingResult.mType);
+ if (plugin != null) {
+ onPostResult(plugin, result, pendingResult.mType);
+ }
// check to see if our onPostResult removed the plugin.
if (!getPluginInfo().containsKey(componentName)) {