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

Commit 022ad453 authored by Muhammad Hasan Khan's avatar Muhammad Hasan Khan
Browse files

auth: do not wtf on IllegalArgumentException

IllegalArgumentException suggests that the client did not call the
service properly and therefore it is not a problem in the server or
called method. Do not create crash and let the client handle this.

Bug: 181876140
Test: m
Change-Id: I6136e9bc88aa2c789079042b5c4efdd9d8453b36
(cherry picked from commit 42b22e54c087ee7c8db01f7502d2808c5f7d72c9)
parent 8dc4ecd2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1076,7 +1076,7 @@ public class AccountManagerService
        } catch (RuntimeException e) {
            // The account manager only throws security exceptions, so let's
            // log all others.
            if (!(e instanceof SecurityException)) {
            if (!(e instanceof SecurityException || e instanceof IllegalArgumentException)) {
                Slog.wtf(TAG, "Account Manager Crash", e);
            }
            throw e;