Fix NullPointerException in MtpManager.
BUG=30152892 Change-Id: I1f4ec361f499510e3ac1635ca5d134b47b6059c3
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