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

Commit 6f9cb15e authored by phweiss's avatar phweiss
Browse files

SecurityControllorImpl: Log whole exception

Logging only the message results in a NPE if e.getMessage()
is null.

Bug: 113618954
Test: compiled
Change-Id: I63ae816d4052c012befbf84123f4c9ba1f31d4fb
parent 58969298
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -403,7 +403,7 @@ public class SecurityControllerImpl extends CurrentUserTracker implements Securi
                boolean hasCACerts = !(conn.getService().getUserCaAliases().getList().isEmpty());
                return new Pair<Integer, Boolean>(userId[0], hasCACerts);
            } catch (RemoteException | InterruptedException | AssertionError e) {
                Log.i(TAG, e.getMessage());
                Log.i(TAG, "failed to get CA certs", e);
                new Handler(Dependency.get(Dependency.BG_LOOPER)).postDelayed(
                        () -> new CACertLoader().execute(userId[0]),
                        CA_CERT_LOADING_RETRY_TIME_IN_MS);