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

Commit 000d38ab authored by Sailesh Nepal's avatar Sailesh Nepal
Browse files

Fix crash when doing conferencing over Wi-Fi

The problem was that we were calling Connection.getAudioState
in the conferencing code. This led to a null pointer exception.

Fix was to add a null pointer check.

BUG: 21957102
Change-Id: Ibad0f6cc70a5bc4a30023beb857125802bc35cd4
parent 3ac465a7
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -1067,6 +1067,9 @@ public abstract class Connection extends Conferenceable {
    @SystemApi
    @SystemApi
    @Deprecated
    @Deprecated
    public final AudioState getAudioState() {
    public final AudioState getAudioState() {
        if (mCallAudioState == null) {
          return null;
        }
        return new AudioState(mCallAudioState);
        return new AudioState(mCallAudioState);
    }
    }