diff options
author | Andrew Lee <anwlee@google.com> | 2015-06-26 16:45:06 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2015-06-26 16:51:38 -0700 |
commit | 220bd7ef7e93172199ca02a53d4e4758bfc8ff73 (patch) | |
tree | 47d591a55ac05c7a4c132f8b4135999f439b5d00 | |
parent | ea5ffbf122ee93e5337529ea1e4c905c9cff87f7 (diff) |
Null protect invocation of getContentResolver.
Bug: 22118779
Change-Id: I9a11c2fc05f8a6f418bc0e6daa55dfb61707bd6a
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java index d0fe2e44b..92bc08977 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -339,7 +339,7 @@ public class VoicemailPlaybackPresenter } private boolean queryHasContent(Uri voicemailUri) { - if (voicemailUri == null) { + if (voicemailUri == null || mContext == null) { return false; } |