From c438c7b3b8a621c3aeccfeaa56f66935fdb1b177 Mon Sep 17 00:00:00 2001 From: Scott Kennedy Date: Wed, 19 Jun 2013 11:52:08 -0700 Subject: Prepare to remove a null check I am fairly convinced that the fix for 9408464 will also fix the underlying problem of this adapter being null. If this log method is ever called, then I'll know it didn't work, but I believe this will never be called. Bug: 9497893 Change-Id: I08518ceecee6985462d0165fb16b1dea95181b07 --- chips/src/com/android/ex/chips/RecipientEditTextView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java index d2e5806..aaf4a05 100644 --- a/chips/src/com/android/ex/chips/RecipientEditTextView.java +++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java @@ -2494,6 +2494,7 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements } final BaseRecipientAdapter adapter = (BaseRecipientAdapter) getAdapter(); if (adapter == null) { + Log.wtf(TAG, "My assumption that this was fixed is wrong."); return null; } RecipientAlternatesAdapter.getMatchingRecipients(getContext(), addresses, -- cgit v1.2.3