From 220bd7ef7e93172199ca02a53d4e4758bfc8ff73 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 26 Jun 2015 16:45:06 -0700 Subject: Null protect invocation of getContentResolver. Bug: 22118779 Change-Id: I9a11c2fc05f8a6f418bc0e6daa55dfb61707bd6a --- src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3