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

Commit a730a5eb authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

MediaCodec: change exception type

As suggested in API review, change IllegalArgumentException
to NullPointerException for the case when the argument is null.

Bug: 123569725
Test: make
Change-Id: I4f0d6fd609b1c2f2096fe0f610804f49432cb650
parent debdadec
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());
    }