Merge "DO NOT MERGE: Fix NullPointerException in MtpManager." into nyc-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
dd443a0548
@@ -282,8 +282,8 @@ class MtpManager {
|
|||||||
}
|
}
|
||||||
final MtpDeviceInfo info = mtpDevice.getDeviceInfo();
|
final MtpDeviceInfo info = mtpDevice.getDeviceInfo();
|
||||||
if (info != null) {
|
if (info != null) {
|
||||||
operationsSupported = mtpDevice.getDeviceInfo().getOperationsSupported();
|
operationsSupported = info.getOperationsSupported();
|
||||||
eventsSupported = mtpDevice.getDeviceInfo().getEventsSupported();
|
eventsSupported = info.getEventsSupported();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
roots = new MtpRoot[0];
|
roots = new MtpRoot[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user