Merge "Fix NullPointerException in MtpManager."

This commit is contained in:
TreeHugger Robot
2016-07-19 08:11:57 +00:00
committed by Android (Google) Code Review

View File

@@ -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];