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

Commit 961672bd authored by Daichi Hirono's avatar Daichi Hirono Committed by android-build-merger
Browse files

Merge "Fix null pointer exception when MTP/PTP device is detached." into nyc-dev

am: f4160302

* commit 'f4160302':
  Fix null pointer exception when MTP/PTP device is detached.
parents e96834c5 f4160302
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -294,7 +294,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;
            }
        }