Merge "Fix NullPointer Exception in testharness command" am: 881c4ad3e2 am: 079af6fd19
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1674567 Change-Id: I2d3bc56809eb5e4f3e7e2cf8916fb40d4cbf78ff
This commit is contained in:
@@ -286,6 +286,9 @@ public class TestHarnessModeService extends SystemService {
|
||||
private class TestHarnessModeShellCommand extends ShellCommand {
|
||||
@Override
|
||||
public int onCommand(String cmd) {
|
||||
if (cmd == null) {
|
||||
return handleDefaultCommands(cmd);
|
||||
}
|
||||
switch (cmd) {
|
||||
case "enable":
|
||||
case "restore":
|
||||
|
||||
Reference in New Issue
Block a user