I have a (Multi)AutoCompleteTextView which uses an item click
listener. I received a crash report which shows a NPE in
onItemClick(). In onItemClick, I use the selected view (param #2 of
the listener) to do manipulation to the text, but looking at the
source code for AutoCompleteTextView and it has the following block:

// Note that we don't have a View here, so we will need to
                // supply null.  Hopefully no existing apps crash...
                mItemClickListener.onItemClick(list, null,
completion.getPosition(),
                        completion.getId());

Shouldn't the onItemClick listener always receive a non-null value for
view? The docs (http://min.ie/3mr) say:
view - The view within the AdapterView that was clicked (this will be
a view provided by the adapter)

Am I correct in assuming this is a bug? The stack trace can be seen
here: http://paste2.org/p/765292

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to