DO NOT MERGE: Fix NullPointerException in MtpManager. am: 9c8e0f1a54
am: 6e6fdd4779
Change-Id: I83b323e21ea69b8bf51fc0c3896ef159868323ef
This commit is contained in:
@@ -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