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

Commit fb982db4 authored by Chia-chi Yeh's avatar Chia-chi Yeh
Browse files

RTP: add a null-check in AudioStream.setDtmfType().

Change-Id: I52cbdea48affae3747942940451f4fd5ca47030f
parent 80e4ee46
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -158,7 +158,7 @@ public class AudioStream extends RtpStream {
            if (type < 96 || type > 127) {
                throw new IllegalArgumentException("Invalid type");
            }
            if (type == mCodec.type) {
            if (mCodec != null && type == mCodec.type) {
                throw new IllegalArgumentException("The type is used by codec");
            }
        }