Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e57c45ea authored by Jay Shrauner's avatar Jay Shrauner Committed by android-build-merger
Browse files

Fix NPE in requestContent

am: f4b1101e

* commit 'f4b1101e':
  Fix NPE in requestContent
parents 2f311c7b f4b1101e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -587,6 +587,10 @@ public class VoicemailPlaybackPresenter
     * playing.
     */
    public void resumePlayback() {
        if (mView == null || mContext == null) {
            return;
        }

        if (!mIsPrepared) {
            // If we haven't downloaded the voicemail yet, attempt to download it.
            checkForContent();
@@ -597,7 +601,7 @@ public class VoicemailPlaybackPresenter

        mIsPlaying = true;

        if (!mMediaPlayer.isPlaying()) {
        if (mMediaPlayer != null && !mMediaPlayer.isPlaying()) {
            // Clamp the start position between 0 and the duration.
            mPosition = Math.max(0, Math.min(mPosition, mDuration.get()));
            mMediaPlayer.seekTo(mPosition);