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 GitHub
parent d2832aad13
commit 9421fd9872
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ internal class FormField(
.toList() .toList()
@RequiresApi(Build.VERSION_CODES.O) @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 = private val EXCLUDED_TERMS =
listOf( listOf(
"url_bar", // Chrome/Edge/Firefox address bar "url_bar", // Chrome/Edge/Firefox address bar