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

Commit 568e7257 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

LeAudioTestApp: Fix possible crash

If remote supports only BASS it will crash the app

Bug: 331775328
Flag: TEST_ONLY
Test: mmm LeAudioTestApp
Change-Id: I0210ca79d4916907ff658dd399a08dea4bacdcd5
parent 551dc422
Loading
Loading
Loading
Loading
+9 −3
Original line number Original line Diff line number Diff line
@@ -87,7 +87,9 @@ public class BluetoothProxy {
                            allLeAudioDevicesMutable.getValue().stream()
                            allLeAudioDevicesMutable.getValue().stream()
                                    .filter(
                                    .filter(
                                            state ->
                                            state ->
                                                    state.leAudioData.nodeStatusMutable.getValue()
                                                    state.leAudioData != null
                                                            && state.leAudioData.nodeStatusMutable
                                                                            .getValue()
                                                                    != null
                                                                    != null
                                                            && state.leAudioData
                                                            && state.leAudioData
                                                                    .nodeStatusMutable
                                                                    .nodeStatusMutable
@@ -661,7 +663,9 @@ public class BluetoothProxy {
                                    allLeAudioDevicesMutable.getValue().stream()
                                    allLeAudioDevicesMutable.getValue().stream()
                                            .filter(
                                            .filter(
                                                    state ->
                                                    state ->
                                                            state.leAudioData.nodeStatusMutable
                                                            state.leAudioData != null
                                                                    && state.leAudioData
                                                                                    .nodeStatusMutable
                                                                                    .getValue()
                                                                                    .getValue()
                                                                            != null
                                                                            != null
                                                                    && state.leAudioData
                                                                    && state.leAudioData
@@ -733,7 +737,9 @@ public class BluetoothProxy {
                                    allLeAudioDevicesMutable.getValue().stream()
                                    allLeAudioDevicesMutable.getValue().stream()
                                            .filter(
                                            .filter(
                                                    state ->
                                                    state ->
                                                            state.leAudioData.nodeStatusMutable
                                                            state.leAudioData != null
                                                                    && state.leAudioData
                                                                                    .nodeStatusMutable
                                                                                    .getValue()
                                                                                    .getValue()
                                                                            != null
                                                                            != null
                                                                    && state.leAudioData
                                                                    && state.leAudioData