summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author phweiss <phweiss@google.com> 2018-09-10 11:12:43 +0200
committer phweiss <phweiss@google.com> 2018-09-10 11:14:42 +0200
commit6f9cb15edea2c5643bd366198afed5cd8d703f46 (patch)
tree7adcb3914e475981d66ac0416a49671c0d905de4
parent58969298c1493229120256b232fbdf31471859a6 (diff)
SecurityControllorImpl: Log whole exception
Logging only the message results in a NPE if e.getMessage() is null. Bug: 113618954 Test: compiled Change-Id: I63ae816d4052c012befbf84123f4c9ba1f31d4fb
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java
index 0adb4392a174..29a6b956ed1e 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/SecurityControllerImpl.java
@@ -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);