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

Commit e0b0083f authored by David Duarte's avatar David Duarte Committed by Sungsoo Lim
Browse files

BrowsablePlayerConnector: Do not use mHandler from within the Handler

mHandler can be assigned to null by cleanup, so this elimitate the
possibility of calling a method on a null mHandler

Test: m Bluetooth
Bug: 295826571
Change-Id: I6230e4a2a4f05b1ae561cbd33c341934346f63f4
parent 9881e645
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -157,12 +157,11 @@ public class BrowsablePlayerConnector {
                                (int status, String mediaId, List<ListItem> results) -> {
                                    // Send the response as a message so that it is properly
                                    // synchronized
                                    Message cb =
                                            mHandler.obtainMessage(MSG_GET_FOLDER_ITEMS_CB);
                                    Message cb = obtainMessage(MSG_GET_FOLDER_ITEMS_CB);
                                    cb.arg1 = status;
                                    cb.arg2 = results.size();
                                    cb.obj = wrapper;
                                    mHandler.sendMessage(cb);
                                    sendMessage(cb);
                                });
                    } break;