We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b8fd25 + fb982db commit b104921Copy full SHA for b104921
voip/java/android/net/rtp/AudioStream.java
@@ -158,7 +158,7 @@ public void setDtmfType(int type) {
158
if (type < 96 || type > 127) {
159
throw new IllegalArgumentException("Invalid type");
160
}
161
- if (type == mCodec.type) {
+ if (mCodec != null && type == mCodec.type) {
162
throw new IllegalArgumentException("The type is used by codec");
163
164
0 commit comments