From 24c462296cc468e9620b59b0d5165286dcdbbff9 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Wed, 9 Dec 2015 11:58:43 -0800 Subject: [DO NOT MERGE] Fix potential NPE in VoicemailPlaybackPresenter Bug: 26092525 Change-Id: I1f6673f698fabd5c6ccb62beee68a91170d0eff7 --- 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 8191d1dd8..93ff00270 100644 --- a/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java +++ b/src/com/android/dialer/voicemail/VoicemailPlaybackPresenter.java @@ -386,7 +386,7 @@ public class VoicemailPlaybackPresenter implements MediaPlayer.OnPreparedListene public void onPostExecute(Boolean hasContent) { if (hasContent) { prepareContent(); - } else { + } else if (mView != null) { mView.resetSeekBar(); mView.setClipPosition(0, mDuration.get()); } -- cgit v1.2.3