Merge "Fix NPE if no AutofillId when traversing the view tree."
This commit is contained in:
@@ -623,7 +623,7 @@ public class UiTranslationController {
|
||||
|
||||
private void addViewIfNeeded(IntArray sourceViewIds, View view) {
|
||||
final AutofillId autofillId = view.getAutofillId();
|
||||
if ((sourceViewIds.indexOf(autofillId.getViewId()) >= 0)
|
||||
if (autofillId != null && (sourceViewIds.indexOf(autofillId.getViewId()) >= 0)
|
||||
&& !mViews.containsKey(autofillId)) {
|
||||
mViews.put(autofillId, new WeakReference<>(view));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user