From a345ef4c06d547dd997a688f930277096cebd4b8 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Thu, 21 Apr 2022 21:19:28 -0500 Subject: [PATCH] Fix NPE --- .../java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java b/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java index 78c3d0a71..9dd92f7d7 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java +++ b/src/main/java/eu/siacs/conversations/xmpp/jingle/WebRTCWrapper.java @@ -533,7 +533,7 @@ public class WebRTCWrapper { } public boolean applyDtmfTone(String tone) { - if (toneManager == null || peerConnection.getSenders().isEmpty()) { + if (toneManager == null || peerConnection == null || peerConnection.getSenders().isEmpty()) { return false; } peerConnection.getSenders().get(0).dtmf().insertDtmf(tone, TONE_DURATION, 100); -- 2.45.2