diff options
| author | Raj Yengisetty <raj@cyngn.com> | 2016-05-06 13:55:04 -0700 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-05-13 14:37:18 -0700 |
| commit | 281a48f19af23c9d1a6ce4e366800a02b41ee205 (patch) | |
| tree | 36ee58e830d62ad1a93a5988828ffc4dc6599a11 /src-ambient | |
| parent | ff0327931a1fdf2617559f7b0a7958c922dbfa30 (diff) | |
| download | packages_apps_PhoneCommon-281a48f19af23c9d1a6ce4e366800a02b41ee205.tar.gz packages_apps_PhoneCommon-281a48f19af23c9d1a6ce4e366800a02b41ee205.tar.bz2 packages_apps_PhoneCommon-281a48f19af23c9d1a6ce4e366800a02b41ee205.zip | |
AmbientDataSubscription: don't post results for unknown plugins
Ticket: CYNGNOS-2744
Change-Id: I076a968a3085b9eec3cf702e322dcaa4d7df6f2d
Diffstat (limited to 'src-ambient')
| -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 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)) { |
