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

Commit 7d84a0bd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "MediaCodec: change exception type"

parents 66ab6192 a730a5eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3314,7 +3314,7 @@ final public class MediaCodec {
     */
    public void setAudioPresentation(@NonNull AudioPresentation presentation) {
        if (presentation == null) {
            throw new IllegalArgumentException("audio presentation is null");
            throw new NullPointerException("audio presentation is null");
        }
        native_setAudioPresentation(presentation.getPresentationId(), presentation.getProgramId());
    }