diff options
author | Andrew Lee <anwlee@google.com> | 2015-08-22 00:50:57 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-08-22 00:50:57 +0000 |
commit | 27d94fa6a9a651ad246def7d1395182037d5ec28 (patch) | |
tree | 05413f6f7db07a517e231c73ef5a04327af2cc2c /src/com/android | |
parent | 5940931e48a615952f589ae1427a0995ac9d0b41 (diff) | |
parent | 37ae6aad573094dbb49ab9e37d7e044539962aa7 (diff) |
am 37ae6aad: am 50297150: am bc891fe6: am 93f905e4: am 9d1d797b: Prevent NPE in VoicemailPlaybackPresenter.
* commit '37ae6aad573094dbb49ab9e37d7e044539962aa7':
Prevent NPE in VoicemailPlaybackPresenter.
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index 540ffb446..19e190c32 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -419,9 +419,11 @@ public class VoicemailPlaybackPresenter super(handler); mFetchResultHandler = handler; - mContext.getContentResolver().registerContentObserver( - voicemailUri, false, this); - mFetchResultHandler.postDelayed(this, FETCH_CONTENT_TIMEOUT_MS); + if (mContext != null) { + mContext.getContentResolver().registerContentObserver( + voicemailUri, false, this); + mFetchResultHandler.postDelayed(this, FETCH_CONTENT_TIMEOUT_MS); + } } /** |