am e558a000
: Merge "Avoid crash in system server when mounting container"
* commit 'e558a0000389a2523b8d3d3a787db6b4579d2bdc': Avoid crash in system server when mounting container
This commit is contained in:
@ -1509,7 +1509,8 @@ class MountService extends IMountService.Stub
|
||||
} catch (NativeDaemonConnectorException e) {
|
||||
int code = e.getCode();
|
||||
if (code == VoldResponseCode.OpFailedStorageNotFound) {
|
||||
throw new IllegalArgumentException(String.format("Container '%s' not found", id));
|
||||
Slog.i(TAG, String.format("Container '%s' not found", id));
|
||||
return null;
|
||||
} else {
|
||||
throw new IllegalStateException(String.format("Unexpected response code %d", code));
|
||||
}
|
||||
|
Reference in New Issue
Block a user