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

Commit 236b9e8e authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Handle the uncommon case that a name is null

Bug: 29037588
Change-Id: I697184bd1ae4d519f8f29bf612ba13843e6662cb
parent ce289e93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -139,7 +139,7 @@ class MtpNotificationManager {
            if (usbInterface.getInterfaceClass() == UsbConstants.USB_SUBCLASS_VENDOR_SPEC &&
                    usbInterface.getInterfaceSubclass() == SUBCLASS_MTP &&
                    usbInterface.getInterfaceProtocol() == PROTOCOL_MTP &&
                    usbInterface.getName().equals("MTP")) {
                    "MTP".equals(usbInterface.getName())) {
                return true;
            }
        }