Fix NullPointer Exception in testharness command
Bug: 185214362 Test: adb shell cmd testharness Change-Id: I7954e0b178174e8bd56512e7a9694448d6bc39e6
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