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

Commit 9d1d797b authored by Andrew Lee's avatar Andrew Lee
Browse files

Prevent NPE in VoicemailPlaybackPresenter.

Bug: 23386856
Change-Id: Ib87184199e8578a1fe3b0a6457b26069673f56ca
parent 6b9d9a0b
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -417,10 +417,12 @@ public class VoicemailPlaybackPresenter
            super(handler);
            mFetchResultHandler = handler;

            if (mContext != null) {
                mContext.getContentResolver().registerContentObserver(
                        voicemailUri, false, this);
                mFetchResultHandler.postDelayed(this, FETCH_CONTENT_TIMEOUT_MS);
            }
        }

        /**
         * Stop waiting for content and notify UI if {@link FETCH_CONTENT_TIMEOUT_MS} has elapsed.