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

Commit e497c26a authored by Junyeong Bak's avatar Junyeong Bak
Browse files

Modified NPE and typo of abbreviation of log tag



There could be NPE issue when connecting LE audio device.
And I've modified typo according to the policy of log tag abbreviation in Telecom.

Test: When node is added after connecting to LE audio device
Bug: 293220012

Change-Id: I8b750fb58c1320101cac4116212f4b807b9b0d09
Signed-off-by: default avatarJunyeong Bak <junyeong.bak@samsung.com>
parent 94e3a82a
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -61,7 +61,8 @@ public class BluetoothDeviceManager {
            public void onGroupStatusChanged(int groupId, int groupStatus) {}
            @Override
            public void onGroupNodeAdded(BluetoothDevice device, int groupId) {
                Log.i(this, device.getAddress() + " group added " + groupId);
                Log.i(this, (device == null ? "device is null" : device.getAddress())
                        + " group added " + groupId);
                if (device == null || groupId == BluetoothLeAudio.GROUP_ID_INVALID) {
                    Log.w(this, "invalid parameter");
                    return;
@@ -73,6 +74,8 @@ public class BluetoothDeviceManager {
            }
            @Override
            public void onGroupNodeRemoved(BluetoothDevice device, int groupId) {
                Log.i(this, (device == null ? "device is null" : device.getAddress())
                        + " group removed " + groupId);
                if (device == null || groupId == BluetoothLeAudio.GROUP_ID_INVALID) {
                    Log.w(this, "invalid parameter");
                    return;
@@ -88,7 +91,7 @@ public class BluetoothDeviceManager {
            new BluetoothProfile.ServiceListener() {
                @Override
                public void onServiceConnected(int profile, BluetoothProfile proxy) {
                    Log.startSession("BMSL.oSC");
                    Log.startSession("BPSL.oSC");
                    try {
                        synchronized (mLock) {
                            String logString;
@@ -126,7 +129,7 @@ public class BluetoothDeviceManager {

                @Override
                public void onServiceDisconnected(int profile) {
                    Log.startSession("BMSL.oSD");
                    Log.startSession("BPSL.oSD");
                    try {
                        synchronized (mLock) {
                            LinkedHashMap<String, BluetoothDevice> lostServiceDevices;