diff options
author | Raj Yengisetty <raj@cyngn.com> | 2016-05-06 13:55:04 -0700 |
---|---|---|
committer | Stephen Bird <sbird@cyngn.com> | 2016-05-13 14:37:25 -0700 |
commit | c8ea00ac4fce053e569431dce7383f18c7f86670 (patch) | |
tree | 8b06c9c3dd669fe3f2a4da242a8da2d2011d6084 | |
parent | 16f201fea44c62a6aa622c11824ed0678bc86f17 (diff) | |
download | packages_apps_PhoneCommon-c8ea00ac4fce053e569431dce7383f18c7f86670.tar.gz packages_apps_PhoneCommon-c8ea00ac4fce053e569431dce7383f18c7f86670.tar.bz2 packages_apps_PhoneCommon-c8ea00ac4fce053e569431dce7383f18c7f86670.zip |
AmbientDataSubscription: don't post results for unknown plugins
Ticket: CYNGNOS-2744
Change-Id: I076a968a3085b9eec3cf702e322dcaa4d7df6f2d
(cherry picked from commit 281a48f19af23c9d1a6ce4e366800a02b41ee205)
-rw-r--r-- | src-ambient/com/android/phone/common/ambient/AmbientDataSubscription.java | 4 |
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 dc1aca3..369dee2 100644 --- a/src-ambient/com/android/phone/common/ambient/AmbientDataSubscription.java +++ b/src-ambient/com/android/phone/common/ambient/AmbientDataSubscription.java @@ -243,7 +243,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)) { |