Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19b4ef66 authored by Jarkko Pöyry's avatar Jarkko Pöyry Committed by Android (Google) Code Review
Browse files

Merge "Don't NPE on command line parse failure."

parents 365504ac b582c670
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -704,8 +704,7 @@ public class Am extends BaseCommand {
            } else if (opt.equals("--receiver-permission")) {
                mReceiverPermission = nextArgRequired();
            } else {
                System.err.println("Error: Unknown option: " + opt);
                return null;
                throw new IllegalArgumentException("Unknown option: " + opt);
            }
        }
        intent.setDataAndType(data, type);