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

Commit 6213b3aa authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "[Media Device] Add null check to avoid npe for compareTo method" into tm-dev am: 75948e85

parents 5381e194 75948e85
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -332,6 +332,9 @@ public abstract class MediaDevice implements Comparable<MediaDevice> {
     */
    @Override
    public int compareTo(MediaDevice another) {
        if (another == null) {
            return -1;
        }
        // Check Bluetooth device is have same connection state
        if (isConnected() ^ another.isConnected()) {
            if (isConnected()) {