Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix NPE
  • Loading branch information
LongCatIsLooong committed Jun 22, 2022
commit c752816eb78a1bceb05c03bcba5d14cf2dc1a4ba
Original file line number Diff line number Diff line change
Expand Up @@ -714,11 +714,11 @@ public void autofill(@NonNull SparseArray<AutofillValue> values) {
return;
}

final TextInputChannel.Configuration.Autofill currentAutofill = configuration.autofill;
if (currentAutofill == null || autofillConfiguration == null) {
if (configuration == null || autofillConfiguration == null || configuration.autofill == null) {
return;
}

final TextInputChannel.Configuration.Autofill currentAutofill = configuration.autofill;
final HashMap<String, TextInputChannel.TextEditState> editingValues = new HashMap<>();
for (int i = 0; i < values.size(); i++) {
int virtualId = values.keyAt(i);
Expand Down