Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
Don't crash on null Autofill hints (#1469)
Browse files Browse the repository at this point in the history
Fixes #1468.
  • Loading branch information
fmeum authored and msfjarvis committed Jul 28, 2021
1 parent c60a253 commit 9011704
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal class FormField(
(HTML_INPUT_FIELD_TYPES_USERNAME + HTML_INPUT_FIELD_TYPES_PASSWORD + HTML_INPUT_FIELD_TYPES_OTP).toSet().toList()

@RequiresApi(Build.VERSION_CODES.O)
private fun isSupportedHint(hint: String) = hint in HINTS_FILLABLE
private fun isSupportedHint(hint: String?) = hint in HINTS_FILLABLE

private val EXCLUDED_TERMS = listOf(
"url_bar", // Chrome/Edge/Firefox address bar
Expand Down

0 comments on commit 9011704

Please sign in to comment.