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

Commit e80b147c authored by Daichi Hirono's avatar Daichi Hirono
Browse files

Fix null pointer exception when MTP/PTP device is detached.

FIXED=27743872

Change-Id: I9b754ba7efbc4958a47aafe332f1909bc0d50457
parent 07db6f39
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -291,7 +291,7 @@ class MtpManager {
            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;
            }
        }