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

Commit b582c670 authored by Jarkko Pöyry's avatar Jarkko Pöyry
Browse files

Don't NPE on command line parse failure.

Bug: 21202826
Change-Id: I3cbc12eaef920905c8abc6532376827ccff132f4
parent 7b293b55
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -702,8 +702,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);