Fix NullPointerException in MtpManager.

BUG=30152892

Change-Id: I1f4ec361f499510e3ac1635ca5d134b47b6059c3
This commit is contained in:
Daichi Hirono
2016-07-19 15:48:04 +09:00
parent ed3c2bd812
commit 28e6112e2f

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