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

Commit 9f76afa1 authored by Nancy Chen's avatar Nancy Chen Committed by Android (Google) Code Review
Browse files

Merge "Fix potential crash if uri is unavailable." into mnc-dev

parents 0feab022 592a9131
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -337,6 +337,10 @@ public class VoicemailPlaybackPresenter
    }

    private boolean queryHasContent(Uri voicemailUri) {
        if (voicemailUri == null) {
            return false;
        }

        ContentResolver contentResolver = mContext.getContentResolver();
        Cursor cursor = contentResolver.query(
                voicemailUri, HAS_CONTENT_PROJECTION, null, null, null);