DO NOT MERGE: Fix NullPointerException in MtpManager.
am: 9c8e0f1a54
Change-Id: I0a83b1dc39015b588759e50ff16db5deaa2f6093
This commit is contained in:
@@ -282,8 +282,8 @@ class MtpManager {
|
||||
}
|
||||
final MtpDeviceInfo info = mtpDevice.getDeviceInfo();
|
||||
if (info != null) {
|
||||
operationsSupported = mtpDevice.getDeviceInfo().getOperationsSupported();
|
||||
eventsSupported = mtpDevice.getDeviceInfo().getEventsSupported();
|
||||
operationsSupported = info.getOperationsSupported();
|
||||
eventsSupported = info.getEventsSupported();
|
||||
}
|
||||
} else {
|
||||
roots = new MtpRoot[0];
|
||||
|
||||
Reference in New Issue
Block a user