From 0430207aeb24faef8f2185a69f7471845f633b62 Mon Sep 17 00:00:00 2001 From: Felipe Leme Date: Wed, 24 May 2017 10:46:23 -0700 Subject: Don't WTF when assist structure is missing. That could happen when app throws an exception while filling it. Fixes: 38312929 Test: manual verification by forcing an app to throw an exception Change-Id: I7e94e9d352c4c3fd8adf01bcf7b25f66535e070d --- services/autofill/java/com/android/server/autofill/Session.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/autofill/java/com/android/server/autofill/Session.java b/services/autofill/java/com/android/server/autofill/Session.java index aa80075b0ca9..f3ca075b7f8e 100644 --- a/services/autofill/java/com/android/server/autofill/Session.java +++ b/services/autofill/java/com/android/server/autofill/Session.java @@ -174,13 +174,13 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState public void send(int resultCode, Bundle resultData) throws RemoteException { final AssistStructure structure = resultData.getParcelable(KEY_STRUCTURE); if (structure == null) { - Slog.wtf(TAG, "no assist structure"); + Slog.e(TAG, "No assist structure - app might have crashed providing it"); return; } final Bundle receiverExtras = resultData.getBundle(KEY_RECEIVER_EXTRAS); if (receiverExtras == null) { - Slog.wtf(TAG, "No " + KEY_RECEIVER_EXTRAS + " on receiver"); + Slog.e(TAG, "No receiver extras - app might have crashed providing it"); return; } -- cgit v1.2.3-59-g8ed1b