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

Commit 77d4e3fc authored by Chen Chen's avatar Chen Chen
Browse files

BluetoothInCallService: Check null for getDetails().getExtras() in

isSilentRingingRequested

Bug: 176035589
Test: atest BluetoothInstrumentationTests
Tag: #stability

Change-Id: Iea13cffaa0d1da1a43551a7a0333e77e91bdf3ed
parent 97e313df
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -269,7 +269,8 @@ public class BluetoothCall {

    // helper functions
    public boolean isSilentRingingRequested() {
        return getDetails().getExtras().getBoolean(Call.EXTRA_SILENT_RINGING_REQUESTED);
        return getDetails().getExtras() != null
                && getDetails().getExtras().getBoolean(Call.EXTRA_SILENT_RINGING_REQUESTED);
    }

    public boolean isConference() {