Don't crash on null Autofill hints (#1469)

Fixes #1468.
This commit is contained in:
Fabian Meumertzheim 2021-07-24 07:00:15 +02:00 committed by Harsh Shandilya
parent c60a2534d5
commit 90117047b7
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -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